Search in sources :

Example 11 with FlowSegmentMetadata

use of org.openkilda.floodlight.model.FlowSegmentMetadata in project open-kilda by telstra.

the class EgressFlowSegmentRemoveCommandTest method makeCommand.

@Override
protected EgressFlowSegmentRemoveCommand makeCommand(FlowEndpoint endpoint, FlowEndpoint ingressEndpoint, FlowTransitEncapsulation encapsulation) {
    MessageContext messageContext = new MessageContext();
    UUID commandId = UUID.randomUUID();
    FlowSegmentMetadata metadata = new FlowSegmentMetadata("egress-flow-segment-remove-flow-id", new Cookie(101), false);
    int islPort = 8;
    return new EgressFlowSegmentRemoveCommand(messageContext, commandId, metadata, endpoint, ingressEndpoint, islPort, encapsulation, null);
}
Also used : Cookie(org.openkilda.model.cookie.Cookie) MessageContext(org.openkilda.messaging.MessageContext) UUID(java.util.UUID) FlowSegmentMetadata(org.openkilda.floodlight.model.FlowSegmentMetadata) FlowEndpoint(org.openkilda.model.FlowEndpoint)

Aggregations

FlowSegmentMetadata (org.openkilda.floodlight.model.FlowSegmentMetadata)11 MessageContext (org.openkilda.messaging.MessageContext)9 Cookie (org.openkilda.model.cookie.Cookie)6 UUID (java.util.UUID)5 EgressFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.EgressFlowSegmentRequestFactory)4 FlowEndpoint (org.openkilda.model.FlowEndpoint)4 ArrayList (java.util.ArrayList)3 EgressMirrorFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.EgressMirrorFlowSegmentRequestFactory)3 FlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.FlowSegmentRequestFactory)3 IngressFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.IngressFlowSegmentRequestFactory)3 IngressMirrorFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.IngressMirrorFlowSegmentRequestFactory)3 TransitFlowSegmentRequestFactory (org.openkilda.floodlight.api.request.factory.TransitFlowSegmentRequestFactory)3 MirrorConfig (org.openkilda.model.MirrorConfig)3 FlowSegmentCookie (org.openkilda.model.cookie.FlowSegmentCookie)3 Properties (java.util.Properties)2 IOFSwitchService (net.floodlightcontroller.core.internal.IOFSwitchService)2 FloodlightModuleContext (net.floodlightcontroller.core.module.FloodlightModuleContext)2 Test (org.junit.Test)2 PropertiesBasedConfigurationProvider (org.openkilda.config.provider.PropertiesBasedConfigurationProvider)2 KildaCore (org.openkilda.floodlight.KildaCore)2