[VOL-4482] openonu-go-adapter: test reconcilement with MDS mismatch
Preconditions are:
https://gerrit.opencord.org/c/voltha-openolt-adapter/+/30389
https://gerrit.opencord.org/c/olt/+/30307 (comming up in a new ONOS release)
Change-Id: I591701f4e0b9e7e48eb76b6aa1bf8a4e56492f1c
diff --git a/libraries/bbsim.robot b/libraries/bbsim.robot
index bc13d4d..049385c 100755
--- a/libraries/bbsim.robot
+++ b/libraries/bbsim.robot
@@ -82,6 +82,15 @@
... bbsimctl onu shutdown ${onu}
Should Contain ${result} successfully msg=Can not shutdown ${onu} values=False
+Set Wrong MDS Counter ONU
+ [Documentation] This keyword sets wrong MDS counter for onu device.
+ [Arguments] ${namespace} ${bbsim_pod_name} ${onu}
+ ${result} ${rc}= Exec Pod And Return Output And RC ${namespace} ${bbsim_pod_name}
+ ... bbsimctl onu invalidate_mds ${onu}
+ Should Be Equal as Integers ${rc} 0
+ Should Contain ${result} MDS counter of ONU msg=Can not invalidate MDS counter ${onu} values=False
+ Should Contain ${result} , set to msg=Can not invalidate MDS counter ${onu} values=False
+
Get ONUs List
[Documentation] Fetches ONUs via BBSimctl
[Arguments] ${namespace} ${bbsim_pod_name}