use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcrep.message.pcrep.message.replies.Result 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.params.xml.ns.yang.pcep.types.rev181109.pcrep.message.pcrep.message.replies.Result in project openflowplugin by opendaylight.
the class Reg0CodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = reg0Codec.deserialize(buffer);
final RegCaseValue result = (RegCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxReg0.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(1, result.getRegValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcrep.message.pcrep.message.replies.Result in project openflowplugin by opendaylight.
the class Reg6CodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = reg6Codec.deserialize(buffer);
final RegCaseValue result = (RegCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxReg6.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(1, result.getRegValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcrep.message.pcrep.message.replies.Result in project openflowplugin by opendaylight.
the class TcpDstCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = tcpDstCodec.deserialize(buffer);
final TcpDstCaseValue result = (TcpDstCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfTcpDst.class, input.getOxmMatchField());
assertEquals(true, input.isHasMask());
assertEquals(1, result.getTcpDstValues().getPort().getValue().shortValue());
assertEquals(0xffff, result.getTcpDstValues().getMask().shortValue() & 0xffff);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcrep.message.pcrep.message.replies.Result in project openflowplugin by opendaylight.
the class EthSrcCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ethSrcCodec.deserialize(buffer);
final EthSrcCaseValue result = (EthSrcCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfEthSrc.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(TEST_ADDRESS, result.getEthSrcValues().getMacAddress());
}
Aggregations