Search in sources :

Example 6 with DetectConnectedDevicesDto

use of org.openkilda.messaging.model.DetectConnectedDevicesDto in project open-kilda by telstra.

the class FlowMapper method toFlowResponseV2.

/**
 * Map {@link FlowDto} into {@link FlowResponseV2}.
 */
public FlowResponseV2 toFlowResponseV2(FlowDto flowDto) {
    DetectConnectedDevicesDto connectedDevices = flowDto.getDetectConnectedDevices();
    FlowEndpointV2 source = generatedFlowSourceEndpointMap(flowDto);
    source.setDetectConnectedDevices(generatedFlowSourceEndpointConnectedDevicesMap(connectedDevices));
    FlowEndpointV2 destination = generatedFlowDestinationEndpointMap(flowDto);
    destination.setDetectConnectedDevices(generatedFlowDestinationEndpointConnectedDevicesMap(connectedDevices));
    FlowResponseV2 result = generatedMap(flowDto, source, destination);
    result.setSource(source);
    result.setDestination(destination);
    return result;
}
Also used : DetectConnectedDevicesDto(org.openkilda.messaging.model.DetectConnectedDevicesDto) FlowEndpointV2(org.openkilda.northbound.dto.v2.flows.FlowEndpointV2) FlowResponseV2(org.openkilda.northbound.dto.v2.flows.FlowResponseV2)

Aggregations

DetectConnectedDevicesDto (org.openkilda.messaging.model.DetectConnectedDevicesDto)6 Test (org.junit.Test)3 FlowRequest (org.openkilda.messaging.command.flow.FlowRequest)2 FlowEndpointV2 (org.openkilda.northbound.dto.v2.flows.FlowEndpointV2)2 PathInfoData (org.openkilda.messaging.info.event.PathInfoData)1 PathNode (org.openkilda.messaging.info.event.PathNode)1 FlowDto (org.openkilda.messaging.model.FlowDto)1 FlowPairDto (org.openkilda.messaging.model.FlowPairDto)1 PatchEndpoint (org.openkilda.messaging.model.PatchEndpoint)1 FlowMirrorPoint (org.openkilda.messaging.nbtopology.response.FlowMirrorPointsDumpResponse.FlowMirrorPoint)1 Flow (org.openkilda.model.Flow)1 FlowEndpoint (org.openkilda.model.FlowEndpoint)1 IslEndpoint (org.openkilda.model.IslEndpoint)1 SwitchId (org.openkilda.model.SwitchId)1 FlowResponseV2 (org.openkilda.northbound.dto.v2.flows.FlowResponseV2)1 SwapFlowPayload (org.openkilda.northbound.dto.v2.flows.SwapFlowPayload)1 FlowMapper (org.openkilda.wfm.share.mappers.FlowMapper)1 RequestedFlowMapper (org.openkilda.wfm.share.mappers.RequestedFlowMapper)1