Search in sources :

Example 16 with InstallSpeakerCommandsRequest

use of org.openkilda.floodlight.api.request.rulemanager.InstallSpeakerCommandsRequest in project open-kilda by telstra.

the class UpdateYFlowRulesAction method buildYFlowInstallRequest.

protected InstallSpeakerCommandsRequest buildYFlowInstallRequest(SwitchId switchId, PathId pathId, CommandContext context) {
    List<OfCommand> ofCommands = buildYFlowOfCommands(switchId, pathId);
    UUID commandId = commandIdGenerator.generate();
    MessageContext messageContext = new MessageContext(commandId.toString(), context.getCorrelationId());
    return new InstallSpeakerCommandsRequest(messageContext, switchId, commandId, ofCommands);
}
Also used : OfCommand(org.openkilda.floodlight.api.request.rulemanager.OfCommand) InstallSpeakerCommandsRequest(org.openkilda.floodlight.api.request.rulemanager.InstallSpeakerCommandsRequest) MessageContext(org.openkilda.messaging.MessageContext) UUID(java.util.UUID)

Aggregations

InstallSpeakerCommandsRequest (org.openkilda.floodlight.api.request.rulemanager.InstallSpeakerCommandsRequest)16 FlowSegmentRequest (org.openkilda.floodlight.api.request.FlowSegmentRequest)6 BaseSpeakerCommandsRequest (org.openkilda.floodlight.api.request.rulemanager.BaseSpeakerCommandsRequest)6 SpeakerResponse (org.openkilda.floodlight.api.response.SpeakerResponse)6 YFlow (org.openkilda.model.YFlow)6 UUID (java.util.UUID)4 OfCommand (org.openkilda.floodlight.api.request.rulemanager.OfCommand)4 String.format (java.lang.String.format)3 List (java.util.List)3 Optional (java.util.Optional)3 Set (java.util.Set)3 Collectors (java.util.stream.Collectors)3 Slf4j (lombok.extern.slf4j.Slf4j)3 FlowCommand (org.openkilda.floodlight.api.request.rulemanager.FlowCommand)3 GroupCommand (org.openkilda.floodlight.api.request.rulemanager.GroupCommand)3 MeterCommand (org.openkilda.floodlight.api.request.rulemanager.MeterCommand)3 SpeakerCommandResponse (org.openkilda.floodlight.api.response.rulemanager.SpeakerCommandResponse)3 HistoryRecordingAction (org.openkilda.wfm.topology.flowhs.fsm.common.actions.HistoryRecordingAction)3 DeleteSpeakerCommandsRequest (org.openkilda.floodlight.api.request.rulemanager.DeleteSpeakerCommandsRequest)2 Flow (org.openkilda.model.Flow)2