use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.
the class Ipv6DstCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ipv6DstCodec.deserialize(buffer);
final IpDstCaseValue result = (IpDstCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmOfIpDst.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getIpDstValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.
the class IpDstCodec method serialize.
@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
serializeHeader(input, outBuffer);
IpDstCaseValue ipDstCase = (IpDstCaseValue) input.getMatchEntryValue();
outBuffer.writeInt(ipDstCase.getIpDstValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.
the class IpDstCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ipDstCodec.deserialize(buffer);
final IpDstCaseValue result = (IpDstCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfIpDst.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getIpDstValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.oxm.container.match.entry.value.IpDstCaseValue in project openflowplugin by opendaylight.
the class Ipv6DstCodec method serialize.
@Override
public void serialize(MatchEntry input, ByteBuf outBuffer) {
serializeHeader(input, outBuffer);
IpDstCaseValue ipDstCase = (IpDstCaseValue) input.getMatchEntryValue();
outBuffer.writeInt(ipDstCase.getIpDstValues().getValue().intValue());
}
Aggregations