Validate Deleted Device Cleanup in ONOS
Change-Id: I5f3ee1a0987e57be8f02685cb0b0a96abcc0d4f0
diff --git a/libraries/utils.robot b/libraries/utils.robot
index 64be39b..36ccb6f 100755
--- a/libraries/utils.robot
+++ b/libraries/utils.robot
@@ -641,6 +641,11 @@
Delete Devices In Voltha Root=true
Run Keyword If ${has_dataplane} Sleep 30s
Wait Until Keyword Succeeds ${timeout} 2s Test Empty Device List
+ FOR ${I} IN RANGE 0 ${num_olts}
+ ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
+ Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 15s
+ ... Validate Deleted Device Cleanup In ONOS ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${olt_serial_number}
+ END
# Clear devices from ONOS
#Remove All Devices From ONOS
#... http://karaf:karaf@${ONOS_REST_IP}:${ONOS_REST_PORT}
@@ -668,6 +673,8 @@
Run Keyword If ${has_dataplane} Sleep 50s
Should Be Equal As Integers ${rc} 0
Wait Until Keyword Succeeds ${timeout} 5s Validate Device Removed ${olt_device_id}
+ Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 15s
+ ... Validate Deleted Device Cleanup In ONOS ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${olt_serial_number}
Repeat Sanity Test
[Documentation] This keyword performs Sanity Test Procedure