[SDFAB-540] Add UP4 test with attached UE and GTP routed traffic
Ensure that when UEs are attached, traffic to the BESS UPF is not
terminated in the fabric, but forwarded to the BESS host
Change-Id: I5dbd95fda9e51d63cdc09a204b4a28fca8cfe098
diff --git a/TestON/tests/USECASE/SegmentRouting/QOS/QOS.py b/TestON/tests/USECASE/SegmentRouting/QOS/QOS.py
index 6aed867..df535c5 100644
--- a/TestON/tests/USECASE/SegmentRouting/QOS/QOS.py
+++ b/TestON/tests/USECASE/SegmentRouting/QOS/QOS.py
@@ -25,15 +25,20 @@
run.installOnos(main, skipPackage=True, cliSleep=5)
main.step("Start P4rt client and setup TRex")
+ # Use the first available ONOS instance CLI
+ onos_cli = main.Cluster.active(0).CLI
up4 = UP4()
trex = Trex()
# Get the P4RT client connected to UP4 in the first available ONOS instance
up4.setup(main.Cluster.active(0).p4rtUp4)
trex.setup(main.TRexClient)
- main.step("Attach UEs")
+ main.step("Program PDRs and FARs via UP4")
up4.attachUes()
+ main.step("Verify PDRs and FARs in ONOS")
+ up4.verifyUp4Flow(onos_cli)
+
# Load traffic config for the current test case
main.step("Load test JSON config")
cfgFile = main.configPath + "/tests/" + "leaf_edge_mobile.json"
@@ -60,9 +65,12 @@
main.step("{}: Assert 99.9 Percentile Latency".format(flow))
trex.assert99_9PercentileLatency(flow)
- main.step("Detach UEs")
+ main.step("Remove PDRs and FARs via UP4")
up4.detachUes()
+ main.step("Verify removed PDRs and FARs from ONOS")
+ up4.verifyNoUesFlow(onos_cli)
+
main.step("Teardown")
trex.teardown()
up4.teardown()