[VOL-3611] OpenOnu-Go-Adapter: Adapt test for OpenOnu-Go soft Reboot to simultaneous rebooting all ONUs
Change-Id: I07621dd1bc120b0cf9d194b7b5bba585832b65eb
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index f45518c..57ec5c8 100755
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -702,12 +702,12 @@
List Should Not Contain Value ${ids} ${id}
Reboot ONU
- [Arguments] ${onu_id}
+ [Arguments] ${onu_id} ${validate_device}=True
[Documentation] Using voltctl command reboot ONU and verify that ONU comes up to running state
${rc} ${devices}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device reboot ${onu_id}
Should Be Equal As Integers ${rc} 0
- Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 1s Validate ONU Device By Device Id
- ... ENABLED DISCOVERED REACHABLE rebooting ${onu_id}
+ Run Keyword If ${validate_device} Run Keyword And Continue On Failure Wait Until Keyword Succeeds
+ ... 60s 1s Validate ONU Device By Device Id ENABLED DISCOVERED REACHABLE rebooting ${onu_id}
Assert ONUs in Voltha
[Arguments] ${count}