import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmOfIpDst;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.ofj.aug.nx.match.IpDstCaseValue;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.ofj.aug.nx.match.IpDstCaseValueBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.ofj.nxm.of.match.ip.dst.grouping.IpDstValuesBuilder;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValueBuilder;
/**
* Codec for the Ipv6Dst message.
private static final int VALUE_LENGTH = 16;
private static final int NXM_FIELD_CODE = 20;
public static final MatchEntrySerializerKey<Nxm1Class, NxmOfIpDst> SERIALIZER_KEY = new MatchEntrySerializerKey<>(
- EncodeConstants.OF13_VERSION_ID, Nxm1Class.class, NxmOfIpDst.class);
+ EncodeConstants.OF_VERSION_1_3, Nxm1Class.class, NxmOfIpDst.class);
public static final MatchEntryDeserializerKey DESERIALIZER_KEY = new MatchEntryDeserializerKey(
- EncodeConstants.OF13_VERSION_ID, OxmMatchConstants.NXM_1_CLASS, NXM_FIELD_CODE);
+ EncodeConstants.OF_VERSION_1_3, OxmMatchConstants.NXM_1_CLASS, NXM_FIELD_CODE);
@Override
- public MatchEntry deserialize(ByteBuf message) {
+ public MatchEntry deserialize(final ByteBuf message) {
return deserializeHeaderToBuilder(message)
.setMatchEntryValue(new IpDstCaseValueBuilder()
.setIpDstValues(new IpDstValuesBuilder().setValue(readUint32(message)).build())
}
@Override
- public void serialize(MatchEntry input, ByteBuf outBuffer) {
+ public void serialize(final MatchEntry input, final ByteBuf outBuffer) {
serializeHeader(input, outBuffer);
IpDstCaseValue ipDstCase = (IpDstCaseValue) input.getMatchEntryValue();
outBuffer.writeInt(ipDstCase.getIpDstValues().getValue().intValue());