use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegMoveNodesNodeTableFlowApplyActionsCase in project netvirt by opendaylight.
the class OpenFlow13ProviderTest method checkActionMoveNsc4.
private void checkActionMoveNsc4(Action action, boolean checkSrc) {
NxActionRegMoveNodesNodeTableFlowApplyActionsCase regMove = (NxActionRegMoveNodesNodeTableFlowApplyActionsCase) action.getAction();
if (checkSrc) {
SrcNxNshc4Case src = (SrcNxNshc4Case) regMove.getNxRegMove().getSrc().getSrcChoice();
assertTrue(src.isNxNshc4Dst());
} else {
DstNxNshc4Case dst = (DstNxNshc4Case) regMove.getNxRegMove().getDst().getDstChoice();
assertTrue(dst.isNxNshc4Dst());
}
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegMoveNodesNodeTableFlowApplyActionsCase 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());
}
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegMoveNodesNodeTableFlowApplyActionsCase in project genius by opendaylight.
the class ActionMoveSourceDestinationEthTest method verifyAction.
private void verifyAction(Action action) {
assertTrue(action.getAction() instanceof NxActionRegMoveNodesNodeTableFlowApplyActionsCase);
NxActionRegMoveNodesNodeTableFlowApplyActionsCase actionCase = (NxActionRegMoveNodesNodeTableFlowApplyActionsCase) action.getAction();
NxRegMove nxRegMove = actionCase.getNxRegMove();
assertTrue(nxRegMove.getSrc().getSrcChoice() instanceof SrcOfEthSrcCase);
SrcOfEthSrcCase srcChoice = (SrcOfEthSrcCase) nxRegMove.getSrc().getSrcChoice();
assertTrue(srcChoice.isOfEthSrc());
assertEquals(0, nxRegMove.getSrc().getStart().intValue());
assertTrue(nxRegMove.getDst().getDstChoice() instanceof DstOfEthDstCase);
DstOfEthDstCase dstChoice = (DstOfEthDstCase) nxRegMove.getDst().getDstChoice();
assertTrue(dstChoice.isOfEthDst());
assertEquals(0, nxRegMove.getDst().getStart().intValue());
assertEquals(47, nxRegMove.getDst().getEnd().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegMoveNodesNodeTableFlowApplyActionsCase in project genius by opendaylight.
the class ActionMoveSourceDestinationIpTest method verifyAction.
private void verifyAction(Action action) {
assertTrue(action.getAction() instanceof NxActionRegMoveNodesNodeTableFlowApplyActionsCase);
NxActionRegMoveNodesNodeTableFlowApplyActionsCase actionCase = (NxActionRegMoveNodesNodeTableFlowApplyActionsCase) action.getAction();
NxRegMove nxRegMove = actionCase.getNxRegMove();
assertTrue(nxRegMove.getSrc().getSrcChoice() instanceof SrcOfIpSrcCase);
SrcOfIpSrcCase srcChoice = (SrcOfIpSrcCase) nxRegMove.getSrc().getSrcChoice();
assertTrue(srcChoice.isOfIpSrc());
assertEquals(0, nxRegMove.getSrc().getStart().intValue());
assertTrue(nxRegMove.getDst().getDstChoice() instanceof DstOfIpDstCase);
DstOfIpDstCase dstChoice = (DstOfIpDstCase) nxRegMove.getDst().getDstChoice();
assertTrue(dstChoice.isOfIpDst());
assertEquals(0, nxRegMove.getDst().getStart().intValue());
assertEquals(31, nxRegMove.getDst().getEnd().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.nodes.node.table.flow.instructions.instruction.instruction.apply.actions._case.apply.actions.action.action.NxActionRegMoveNodesNodeTableFlowApplyActionsCase in project genius by opendaylight.
the class ActionMoveSourceDestinationIpv6Test method verifyAction.
private void verifyAction(Action action) {
assertTrue(action.getAction() instanceof NxActionRegMoveNodesNodeTableFlowApplyActionsCase);
NxActionRegMoveNodesNodeTableFlowApplyActionsCase actionCase = (NxActionRegMoveNodesNodeTableFlowApplyActionsCase) action.getAction();
NxRegMove nxRegMove = actionCase.getNxRegMove();
assertTrue(nxRegMove.getSrc().getSrcChoice() instanceof SrcNxIpv6SrcCase);
SrcNxIpv6SrcCase srcChoice = (SrcNxIpv6SrcCase) nxRegMove.getSrc().getSrcChoice();
assertTrue(srcChoice.isNxIpv6Src());
assertEquals(0, nxRegMove.getSrc().getStart().intValue());
assertTrue(nxRegMove.getDst().getDstChoice() instanceof DstNxIpv6DstCase);
DstNxIpv6DstCase dstChoice = (DstNxIpv6DstCase) nxRegMove.getDst().getDstChoice();
assertTrue(dstChoice.isNxIpv6Dst());
assertEquals(0, nxRegMove.getDst().getStart().intValue());
assertEquals(127, nxRegMove.getDst().getEnd().intValue());
}
Aggregations