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 OutputRegCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
action = outRegCodec.deserialize(buffer);
ActionOutputReg result = (ActionOutputReg) action.getActionChoice();
assertEquals(1, result.getNxActionOutputReg().getNBits().shortValue());
assertEquals(2, result.getNxActionOutputReg().getSrc().intValue());
assertEquals(3, result.getNxActionOutputReg().getMaxLen().shortValue());
assertEquals(0, buffer.readableBytes());
}
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 RegMoveCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
action = regMoveCodec.deserialize(buffer);
ActionRegMove result = (ActionRegMove) action.getActionChoice();
assertEquals(1, result.getNxActionRegMove().getNBits().shortValue());
assertEquals(2, result.getNxActionRegMove().getSrcOfs().shortValue());
assertEquals(3, result.getNxActionRegMove().getDstOfs().shortValue());
assertEquals(4, result.getNxActionRegMove().getSrc().intValue());
assertEquals(5, result.getNxActionRegMove().getDst().intValue());
assertEquals(0, buffer.readableBytes());
}
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 ArpShaCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = arpShaCodec.deserialize(buffer);
final ArpShaCaseValue result = (ArpShaCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxArpSha.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(RESULT_ADDRESS, result.getArpShaValues().getMacAddress());
}
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 CtStateCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ctStateCodec.deserialize(buffer);
final CtStateCaseValue result = (CtStateCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxCtState.class, input.getOxmMatchField());
assertEquals(true, input.isHasMask());
assertEquals(1, result.getCtStateValues().getCtState().intValue());
assertEquals(2, result.getCtStateValues().getMask().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 EthDstCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ethDstCodec.deserialize(buffer);
final EthDstCaseValue result = (EthDstCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfEthDst.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(TEST_ADDRESS, result.getEthDstValues().getMacAddress());
}
Aggregations