use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class ResubmitCodecTest method getSubTypeTest2.
/**
* If table != null or table != OFP_TABLE_ALL
* SUBTYPE should be set to NXAST_RESUBMIT_TABLE_SUBTYPE.
*/
@Test
public void getSubTypeTest2() {
Byte table = new Byte((byte) 1);
action = createAction(null, table);
ActionResubmit actionResubmit = (ActionResubmit) action.getActionChoice();
byte result = resubmitCodec.getSubType(actionResubmit);
assertEquals(NXAST_RESUBMIT_TABLE_SUBTYPE, result);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class ResubmitCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
action = resubmitCodec.deserialize(buffer);
ActionResubmit result = (ActionResubmit) action.getActionChoice();
assertEquals(1, result.getNxActionResubmit().getInPort().intValue());
assertEquals(2, result.getNxActionResubmit().getTable().byteValue());
assertEquals(0, buffer.readableBytes());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class ArpOpCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = arpOpCodec.deserialize(buffer);
final ArpOpCaseValue result = (ArpOpCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfArpOp.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getArpOpValues().getValue().shortValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class ArpSpaCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = arpSpaCodec.deserialize(buffer);
final ArpSpaCaseValue result = (ArpSpaCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfArpSpa.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getArpSpaValues().getValue().shortValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class ArpTpaCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = arpTpaCodec.deserialize(buffer);
final ArpTpaCaseValue result = (ArpTpaCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfArpTpa.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getArpTpaValues().getValue().intValue());
}
Aggregations