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