TT workflow improve sanity check
- prevent multiple add subscriber (in case of non-unitag)
- wait for correct reason/state of onu after add subscriber
Change-Id: I28c9694279ff5f342137ec6959db642c42741180
diff --git a/libraries/onos.robot b/libraries/onos.robot
index 2f61296..b6a9cb9 100755
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -735,6 +735,13 @@
... flows -s | grep IN_PORT:${onu_port} | grep PENDING
Should Be Empty ${pending_flows}
+Verify Pending Flows For ONU
+ [Arguments] ${ip} ${port} ${onu_port}
+ [Documentation] Verifies that there are flows "PENDING" state for the ONU in ONOS
+ ${pending_flows}= Execute ONOS CLI Command use single connection ${ip} ${port}
+ ... flows -s | grep IN_PORT:${onu_port} | grep PENDING
+ Should Not Be Empty ${pending_flows}
+
Verify Eapol Flows Added For ONU
[Arguments] ${ip} ${port} ${olt_of_id} ${onu_port} ${c_tag}=4091
[Documentation] Verifies if the Eapol Flows are added in ONOS for the ONU