use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmArpThaDeserializer method addArpThaValue.
private static void addArpThaValue(ByteBuf input, MatchEntryBuilder builder) {
ArpThaCaseBuilder caseBuilder = new ArpThaCaseBuilder();
ArpThaBuilder thaBuilder = new ArpThaBuilder();
thaBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
if (builder.isHasMask()) {
thaBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
}
caseBuilder.setArpTha(thaBuilder.build());
builder.setMatchEntryValue(caseBuilder.build());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmArpThaDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addArpThaValue(input, builder);
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmEthSrcDeserializer method addEthSrcValue.
private static void addEthSrcValue(ByteBuf input, MatchEntryBuilder builder) {
EthSrcCaseBuilder caseBuilder = new EthSrcCaseBuilder();
EthSrcBuilder ethBuilder = new EthSrcBuilder();
ethBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
if (builder.isHasMask()) {
ethBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
}
caseBuilder.setEthSrc(ethBuilder.build());
builder.setMatchEntryValue(caseBuilder.build());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmEthSrcDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addEthSrcValue(input, builder);
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmIcmpv4CodeDeserializer method addIcmpv4CodeValue.
private static void addIcmpv4CodeValue(ByteBuf input, MatchEntryBuilder builder) {
Icmpv4CodeCaseBuilder caseBuilder = new Icmpv4CodeCaseBuilder();
Icmpv4CodeBuilder icmpBuilder = new Icmpv4CodeBuilder();
icmpBuilder.setIcmpv4Code(input.readUnsignedByte());
caseBuilder.setIcmpv4Code(icmpBuilder.build());
builder.setMatchEntryValue(caseBuilder.build());
}
Aggregations