use of org.openkilda.messaging.command.flow.FlowCreateRequest in project open-kilda by telstra.
the class FlowTopologyTest method createFlow.
private Flow createFlow(final String flowId) throws IOException {
System.out.println("NORTHBOUND: Create flow");
Flow flowPayload = new Flow(flowId, 10000, false, "", "test-switch", 1, 2, "test-switch", 1, 2);
FlowCreateRequest commandData = new FlowCreateRequest(flowPayload);
CommandMessage message = new CommandMessage(commandData, 0, "create-flow", Destination.WFM);
// sendNorthboundMessage(message);
sendFlowMessage(message);
return flowPayload;
}
Aggregations