use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntryBuilder in project openflowplugin by opendaylight.
the class OxmArpOpDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addArpOpValue(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 OxmArpTpaDeserializer method addArpTpaValue.
private static void addArpTpaValue(final ByteBuf input, final MatchEntryBuilder builder) {
ArpTpaCaseBuilder caseBuilder = new ArpTpaCaseBuilder();
ArpTpaBuilder arpBuilder = new ArpTpaBuilder();
arpBuilder.setIpv4Address(ByteBufUtils.readIetfIpv4Address(input));
if (builder.isHasMask()) {
arpBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.GROUPS_IN_IPV4_ADDRESS));
}
caseBuilder.setArpTpa(arpBuilder.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 OxmEthDstDeserializer method addEthDstValue.
private static void addEthDstValue(ByteBuf input, MatchEntryBuilder builder) {
EthDstCaseBuilder caseBuilder = new EthDstCaseBuilder();
EthDstBuilder ethBuilder = new EthDstBuilder();
ethBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
if (builder.isHasMask()) {
ethBuilder.setMask(OxmDeserializerHelper.convertMask(input, EncodeConstants.MAC_ADDRESS_LENGTH));
}
caseBuilder.setEthDst(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 OxmEthDstDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addEthDstValue(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 OxmSctpSrcDeserializer method deserialize.
@Override
public MatchEntry deserialize(ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addSctpSrcValue(input, builder);
return builder.build();
}
Aggregations