Search in sources :

Example 1 with OneSwitchFlowRequestFactory

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

the class OneSwitchFlowCommandJsonTest method makeRequest.

@Override
protected OneSwitchFlowRequest makeRequest() {
    SwitchId swId = new SwitchId(1);
    OneSwitchFlowRequestFactory factory = new OneSwitchFlowRequestFactory(new MessageContext(), new FlowSegmentMetadata("single-switch-flow-install-request", new Cookie(2), false), new FlowEndpoint(swId, 3, 4), new MeterConfig(new MeterId(6), 7000), new FlowEndpoint(swId, 8, 9), RulesContext.builder().build(), MirrorConfig.builder().build());
    return makeRequest(factory);
}
Also used : Cookie(org.openkilda.model.cookie.Cookie) FlowEndpoint(org.openkilda.model.FlowEndpoint) OneSwitchFlowRequestFactory(org.openkilda.floodlight.api.request.factory.OneSwitchFlowRequestFactory) SwitchId(org.openkilda.model.SwitchId) MessageContext(org.openkilda.messaging.MessageContext) MeterConfig(org.openkilda.model.MeterConfig) FlowSegmentMetadata(org.openkilda.floodlight.model.FlowSegmentMetadata) MeterId(org.openkilda.model.MeterId)

Aggregations

OneSwitchFlowRequestFactory (org.openkilda.floodlight.api.request.factory.OneSwitchFlowRequestFactory)1 FlowSegmentMetadata (org.openkilda.floodlight.model.FlowSegmentMetadata)1 MessageContext (org.openkilda.messaging.MessageContext)1 FlowEndpoint (org.openkilda.model.FlowEndpoint)1 MeterConfig (org.openkilda.model.MeterConfig)1 MeterId (org.openkilda.model.MeterId)1 SwitchId (org.openkilda.model.SwitchId)1 Cookie (org.openkilda.model.cookie.Cookie)1