[VOL-2478]
integrate tests to nightly jobs
Change-Id: I57eb8f5295b8f3cd1c513693593603fc0ffcdb6e
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index 7ad15b1..00c85c4 100644
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -409,3 +409,13 @@
Append To List ${ids} ${device_id}
END
List Should Not Contain Value ${ids} ${id}
+
+Reboot ONU
+ [Arguments] ${onu_id} ${src} ${dst}
+ [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 Ignore Error Wait Until Keyword Succeeds 60s 1s Validate Device
+ ... ENABLED DISCOVERED UNREACHABLE ${onu_id} onu=True
+
+