use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.dst.choice.grouping.dst.choice.DstNxTunIdCase in project netvirt by opendaylight.
the class OpenFlow13ProviderTest method checkActionMoveTunId.
private void checkActionMoveTunId(Action action, boolean checkSrc) {
NxActionRegMoveNodesNodeTableFlowApplyActionsCase regMove = (NxActionRegMoveNodesNodeTableFlowApplyActionsCase) action.getAction();
if (checkSrc) {
SrcNxTunIdCase src = (SrcNxTunIdCase) regMove.getNxRegMove().getSrc().getSrcChoice();
assertTrue(src.isNxTunId());
} else {
DstNxTunIdCase dst = (DstNxTunIdCase) regMove.getNxRegMove().getDst().getDstChoice();
assertTrue(dst.isNxTunId());
}
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.dst.choice.grouping.dst.choice.DstNxTunIdCase in project netvirt by opendaylight.
the class OpenFlow13ProviderTest method checkActionLoadTunId.
private void checkActionLoadTunId(Action action, long tunId) {
NxActionRegLoadNodesNodeTableFlowApplyActionsCase regLoad = (NxActionRegLoadNodesNodeTableFlowApplyActionsCase) action.getAction();
DstNxTunIdCase mdTypeCase = (DstNxTunIdCase) regLoad.getNxRegLoad().getDst().getDstChoice();
assertTrue(mdTypeCase.isNxTunId());
assertEquals(regLoad.getNxRegLoad().getValue().longValue(), tunId);
}
Aggregations