[VOL-2431]Multiple ONU Reboot Scenario
Change-Id: I0ec6a3e80d9a266b85a8c8e99b877e8a9e6f9857
diff --git a/libraries/k8s.robot b/libraries/k8s.robot
index 246a6a5..c3b67fe 100644
--- a/libraries/k8s.robot
+++ b/libraries/k8s.robot
@@ -299,3 +299,12 @@
${rc} ${count} Run and Return Rc and Output
... kubectl -n ${namespace} get pods -l ${key}=${value} -o json | jq -r ".items[].status.phase" | wc -l
Should Be Equal as Integers ${count} ${number}
+
+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 30 1s Validate Device
+ ... ENABLED ACTIVATING UNREACHABLE ${onu_id} onu=True
+