@Test public void testBaseFlow() { Flow testFlow = buildFlow(FlowIdUtils.newFlowId("gotoDestinationMapper"), tableId, 50, null, FlowUtils.gotoTableInstructions((short) 2)).build(); flows.baseFlow((short) 2, 50, ofWriter); verify(ofWriter, times(1)).writeFlow(NODE_ID, tableId, testFlow); }
void baseFlow(short goToTable, int priority, OfWriter ofWriter) { Flow flow = FlowUtils.base(tableId) .setTableId(tableId) .setPriority(priority) .setInstructions(FlowUtils.instructions(FlowUtils.gotoTableIns(goToTable))) .setId(FlowIdUtils.newFlowId("gotoDestinationMapper")) .build(); ofWriter.writeFlow(nodeId, tableId, flow); }
IngressNatMapperFlows { void baseFlow(short goToTable, int priority, OfWriter ofWriter) { Flow flow = FlowUtils.base(tableId) .setTableId(tableId) .setPriority(priority) .setInstructions(FlowUtils.instructions(FlowUtils.gotoTableIns(goToTable))) .setId(FlowIdUtils.newFlowId("gotoDestinationMapper")) .build(); ofWriter.writeFlow(nodeId, tableId, flow); } }
IngressNatMapperFlows { void baseFlow(short goToTable, int priority, OfWriter ofWriter) { Flow flow = FlowUtils.base(tableId) .setTableId(tableId) .setPriority(priority) .setInstructions(FlowUtils.instructions(FlowUtils.gotoTableIns(goToTable))) .setId(FlowIdUtils.newFlowId("gotoDestinationMapper")) .build(); ofWriter.writeFlow(nodeId, tableId, flow); } IngressNatMapperFlows(NodeId nodeId, short tableId); }
IngressNatMapperFlows { void baseFlow(short goToTable, int priority, OfWriter ofWriter) { Flow flow = FlowUtils.base(tableId) .setTableId(tableId) .setPriority(priority) .setInstructions(FlowUtils.instructions(FlowUtils.gotoTableIns(goToTable))) .setId(FlowIdUtils.newFlowId("gotoDestinationMapper")) .build(); ofWriter.writeFlow(nodeId, tableId, flow); } IngressNatMapperFlows(NodeId nodeId, short tableId);  }
IngressNatMapperFlows { void baseFlow(short goToTable, int priority, OfWriter ofWriter) { Flow flow = FlowUtils.base(tableId) .setTableId(tableId) .setPriority(priority) .setInstructions(FlowUtils.instructions(FlowUtils.gotoTableIns(goToTable))) .setId(FlowIdUtils.newFlowId("gotoDestinationMapper")) .build(); ofWriter.writeFlow(nodeId, tableId, flow); } IngressNatMapperFlows(NodeId nodeId, short tableId);   }