[VOL-2550] DT: Functional TC: Disable-Delete OLT
Change-Id: I31e2711ecc8e30eee971ab2c2245592a6ea8498f
diff --git a/libraries/voltctl.robot b/libraries/voltctl.robot
index 2d5fbf7..f35d171 100644
--- a/libraries/voltctl.robot
+++ b/libraries/voltctl.robot
@@ -51,11 +51,18 @@
Disable Device
[Arguments] ${device_id}
- [Documentation] Enables a device in VOLTHA
+ [Documentation] Disables a device in VOLTHA
${rc} ${output}= Run and Return Rc and Output
... ${VOLTCTL_CONFIG}; voltctl device disable ${device_id}
Should Be Equal As Integers ${rc} 0
+Delete Device
+ [Arguments] ${device_id}
+ [Documentation] Deletes a device in VOLTHA
+ ${rc} ${output}= Run and Return Rc and Output
+ ... ${VOLTCTL_CONFIG}; voltctl device delete ${device_id}
+ Should Be Equal As Integers ${rc} 0
+
Disable Devices In Voltha
[Documentation] Disables all the known devices in voltha
[Arguments] ${filter}