Search in sources :

Example 1 with EgressFlowSegmentRequestFactory

use of org.openkilda.floodlight.api.request.factory.EgressFlowSegmentRequestFactory in project open-kilda by telstra.

the class EgressFlowSegmentCommandJsonTest method makeRequest.

@Override
protected EgressFlowSegmentRequest makeRequest() {
    SwitchId swId = new SwitchId(1);
    EgressFlowSegmentRequestFactory factory = new EgressFlowSegmentRequestFactory(new MessageContext(), new FlowSegmentMetadata("egress-flow-segment-install-request", new Cookie(2), false), new FlowEndpoint(swId, 3, 4), new FlowEndpoint(new SwitchId(swId.toLong() + 1), 6, 7), 9, new FlowTransitEncapsulation(10, FlowEncapsulationType.TRANSIT_VLAN), MirrorConfig.builder().build());
    return makeRequest(factory);
}
Also used : Cookie(org.openkilda.model.cookie.Cookie) EgressFlowSegmentRequestFactory(org.openkilda.floodlight.api.request.factory.EgressFlowSegmentRequestFactory) FlowEndpoint(org.openkilda.model.FlowEndpoint) FlowTransitEncapsulation(org.openkilda.model.FlowTransitEncapsulation) SwitchId(org.openkilda.model.SwitchId) MessageContext(org.openkilda.messaging.MessageContext) FlowSegmentMetadata(org.openkilda.floodlight.model.FlowSegmentMetadata)

Aggregations

EgressFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.EgressFlowSegmentRequestFactory)1 FlowSegmentMetadata (org.openkilda.floodlight.model.FlowSegmentMetadata)1 MessageContext (org.openkilda.messaging.MessageContext)1 FlowEndpoint (org.openkilda.model.FlowEndpoint)1 FlowTransitEncapsulation (org.openkilda.model.FlowTransitEncapsulation)1 SwitchId (org.openkilda.model.SwitchId)1 Cookie (org.openkilda.model.cookie.Cookie)1