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