[VOL-4543] Added ONU Software Upgrade in Scale Test Suite
Change-Id: I8fdfee238b45ed3dd548700576a0c6d489e1530f
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index 4301379..2a85e95 100755
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -144,6 +144,14 @@
Log ${devices}
Should Be Equal As Integers ${rc1} 0
+Get ONUs Device IDs from Voltha
+ [Documentation] Fetches the ONU Device Ids from Voltha
+ ${rc} ${onus}= Run and Return Rc and Output
+ ... voltctl -c ${VOLTCTL_CONFIG} device list -m 32MB -f Type=brcm_openomci_onu -q
+ Should Be Equal as Integers ${rc} 0
+ @{onuDevList}= Split To Lines ${onus}
+ [Return] ${onuDevList}
+
Get Device List from Voltha by type
[Documentation] Gets Device List Output from Voltha applying filtering by device type
[Arguments] ${type}