use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.src.choice.grouping.src.choice.SrcNxIpv6SrcCase 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