use of org.openkilda.floodlight.command.flow.egress.EgressMirrorFlowSegmentInstallCommand in project open-kilda by telstra.
the class RecordHandler method makeFlowSegmentWrappedCommand.
private FlowSegmentWrapperCommand makeFlowSegmentWrappedCommand(InstallEgressMirrorFlow request, MessageContext messageContext, FlowSegmentResponseFactory responseFactory) {
FlowEndpoint endpoint = new FlowEndpoint(request.getSwitchId(), request.getOutputPort(), request.getOutputVlanId(), request.getOutputInnerVlanId());
EgressMirrorFlowSegmentInstallCommand command = new EgressMirrorFlowSegmentInstallCommand(messageContext, EMPTY_COMMAND_ID, makeSegmentMetadata(request), endpoint, request.getIngressEndpoint(), request.getInputPort(), makeTransitEncapsulation(request), request.getMirrorConfig());
return new FlowSegmentWrapperCommand(command, responseFactory);
}
Aggregations