public static Action createActionResubmit(Integer port, final short toTable) { NxActionResubmitBuilder resubmit = new NxActionResubmitBuilder().setTable(toTable); if (port != null) { resubmit.setInPort(port); } ActionResubmitBuilder actionResubmitBuilder = new ActionResubmitBuilder(); actionResubmitBuilder.setNxActionResubmit(resubmit.build()); ResubmitConvertor convertor = new ResubmitConvertor(); ActionPath ap = ActionPath.NODES_NODE_TABLE_FLOW_INSTRUCTIONS_INSTRUCTION_WRITEACTIONSCASE_WRITEACTIONS_ACTION_ACTION_EXTENSIONLIST_EXTENSION; return convertor.convert(ActionUtil.createAction(actionResubmitBuilder.build()), ap); }
@Override public org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action convert(final Action input, final ActionPath path) { NxActionResubmit action = ((ActionResubmit) input.getActionChoice()).getNxActionResubmit(); NxResubmitBuilder builder = new NxResubmitBuilder(); builder.setInPort(action.getInPort()); builder.setTable(action.getTable()); return resolveAction(builder.build(), path); }
public static Action createActionResubmitTable(final short toTable, int order) { NxActionResubmitBuilder resubmit = new NxActionResubmitBuilder(); resubmit.setTable(toTable); ActionResubmitBuilder actionResubmitBuilder = new ActionResubmitBuilder(); actionResubmitBuilder.setNxActionResubmit(resubmit.build()); ResubmitConvertor convertor = new ResubmitConvertor(); ActionBuilder ab = createActionBuilder(order); ab.setAction(convertor.convert( ActionUtil.createAction(actionResubmitBuilder.build()), ActionPath.NODES_NODE_TABLE_FLOW_INSTRUCTIONS_INSTRUCTION_WRITEACTIONSCASE_WRITEACTIONS_ACTION_ACTION_EXTENSIONLIST_EXTENSION)); return ab.build(); }