use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class OneSwitchFlowInstallFlowModFactoryTest method testMakeOuterOnlyVlanForwardMessage.
private void testMakeOuterOnlyVlanForwardMessage(OneSwitchFlowInstallCommand command) {
OFFlowAdd expected = makeForwardingMessage(command, 0, OfAdapter.INSTANCE.matchVlanId(of, of.buildMatch(), command.getEndpoint().getOuterVlanId()).setExact(MatchField.IN_PORT, OFPort.of(command.getEndpoint().getPortNumber())).build(), getTargetIngressTableId(), command.getEndpoint().getVlanStack());
IngressFlowModFactory factory = makeFactory(command);
verifyOfMessageEquals(expected, factory.makeOuterOnlyVlanForwardMessage(new EffectiveIds(getEffectiveMeterId(command.getMeterConfig()), null)));
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandInstallTest method noMeterRequested.
@Test
public void noMeterRequested() throws Exception {
IngressFlowSegmentBase command = makeCommand(endpointIngressSingleVlan, null, makeMetadata());
switchFeaturesSetup(sw, true);
expectMakeOuterOnlyVlanForwardMessage(command, new EffectiveIds());
expectNoMoreOfMessages();
replayAll();
CompletableFuture<FlowSegmentReport> result = command.execute(commandProcessor);
verifySuccessCompletion(result);
verifyWriteCount(1);
verifyNoMeterCall((OFFlowAdd) getWriteRecord(0).getRequest());
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandInstallTest method processOneVlanSingleTable.
protected void processOneVlanSingleTable(IngressFlowSegmentBase command) throws Exception {
expectMakeOuterOnlyVlanForwardMessage(command, new EffectiveIds(meterConfig.getId(), null));
executeCommand(command, 1);
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandRemoveTest method processOneVlanMultiTable.
protected void processOneVlanMultiTable(IngressFlowSegmentBase command) throws Exception {
expectMakeSingleVlanForwardMessage(command, new EffectiveIds(meterConfig.getId(), null));
executeCommand(command, 1);
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandRemoveTest method noMeterRequested.
@Test
public void noMeterRequested() throws Exception {
IngressFlowSegmentBase command = makeCommand(endpointIngressSingleVlan, null, makeMetadata());
switchFeaturesSetup(sw, false);
expectMakeOuterOnlyVlanForwardMessage(command, new EffectiveIds());
expectNoMoreOfMessages();
replayAll();
verifySuccessCompletion(command.execute(commandProcessor));
}
Aggregations