use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandRemoveTest method processZeroVlanMultiTable.
protected void processZeroVlanMultiTable(IngressFlowSegmentBase command) throws Exception {
expectMakeDefaultPortForwardMessage(command, new EffectiveIds(meterConfig.getId(), null));
executeCommand(command, 1);
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressFlowLoopSegmentInstallCommandTest method ingressFlowLoopDefaultTagSingleTableTest.
@Test
public void ingressFlowLoopDefaultTagSingleTableTest() throws Exception {
IngressFlowLoopSegmentInstallCommand command = createCommand(0, 0, false);
OFFlowMod mod = assertModCountAndReturnMod(command.makeFlowModMessages(new EffectiveIds()));
assertCommon(mod, INPUT_TABLE_ID);
assertEquals(1, stream(mod.getMatch().getMatchFields().spliterator(), false).count());
List<OFAction> applyActions = ((OFInstructionApplyActions) mod.getInstructions().get(0)).getActions();
assertEquals(1, applyActions.size());
assertOutputAction(applyActions.get(0));
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressFlowLoopSegmentInstallCommandTest method ingressFlowLoopSigleTagMultiTableTest.
@Test
public void ingressFlowLoopSigleTagMultiTableTest() throws Exception {
IngressFlowLoopSegmentInstallCommand command = createCommand(VLAN_1, 0, true);
OFFlowMod mod = assertModCountAndReturnMod(command.makeFlowModMessages(new EffectiveIds()));
assertCommon(mod, INGRESS_TABLE_ID);
assertEquals(2, stream(mod.getMatch().getMatchFields().spliterator(), false).count());
assertNull(mod.getMatch().get(MatchField.VLAN_VID));
assertMetadata(mod.getMatch(), VLAN_1);
List<OFAction> applyActions = ((OFInstructionApplyActions) mod.getInstructions().get(0)).getActions();
assertEquals(3, applyActions.size());
assertPushVlanAction(applyActions.get(0));
assertSetField(applyActions.get(1), OFOxmVlanVid.class, OFVlanVidMatch.ofVlan(VLAN_1));
assertOutputAction(applyActions.get(2));
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressFlowLoopSegmentInstallCommandTest method ingressFlowLoopDefaultTagMultiTableTest.
@Test
public void ingressFlowLoopDefaultTagMultiTableTest() throws Exception {
IngressFlowLoopSegmentInstallCommand command = createCommand(0, 0, true);
OFFlowMod mod = assertModCountAndReturnMod(command.makeFlowModMessages(new EffectiveIds()));
assertCommon(mod, INGRESS_TABLE_ID);
assertEquals(1, stream(mod.getMatch().getMatchFields().spliterator(), false).count());
List<OFAction> applyActions = ((OFInstructionApplyActions) mod.getInstructions().get(0)).getActions();
assertEquals(1, applyActions.size());
assertOutputAction(applyActions.get(0));
}
use of org.openkilda.floodlight.model.EffectiveIds in project open-kilda by telstra.
the class IngressCommandInstallTest method processDoubleVlanMultiTable.
void processDoubleVlanMultiTable(IngressFlowSegmentBase command) throws Exception {
expectMakeDoubleVlanForwardMessage(command, new EffectiveIds(meterConfig.getId(), null));
expectMakeCustomerPortSharedCatchInstallMessage(command);
expectMakeOuterVlanMatchSharedMessage(command);
executeCommand(command, 3);
}
Aggregations