[VOL-4320] OpenOnuAdapter sw-upgrade extend test suite by further (abort) tests
Change-Id: I23a78bc66bcfeb3b5d1c194ca117c2b1192a3c40
diff --git a/libraries/bbsim.robot b/libraries/bbsim.robot
index 34d8a72..bc13d4d 100755
--- a/libraries/bbsim.robot
+++ b/libraries/bbsim.robot
@@ -106,3 +106,12 @@
... bbsimctl onu list | grep ${onu} | awk '{print $5}'
Should Be Equal as Integers ${rc} 0
Should Be Equal ${res} ${internal_state}
+
+Get Images Count
+ [Documentation] Validates the state of ONU in case of Image Upgrade
+ [Arguments] ${webserver_port}=50074
+ ${rc} ${output}= Run and Return Rc and Output curl localhost:${webserver_port}/images-count 2>/dev/null
+ Should Be Equal as Integers ${rc} 0 Could not access images-count of bbsim
+ ${value}= Fetch From Right ${output} :
+ ${count}= Fetch From Left ${value} }
+ [Return] ${count}