[VOL-2869] Verify Zero ONOS Flows Count on OLT Delete

Change-Id: I2aaec2c4a2c467ca8bfab3d0d3da8d7437fb2c10
diff --git a/libraries/onos.robot b/libraries/onos.robot
index d03e27b..2847d7f 100644
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -136,6 +136,13 @@
     ...    flows -s ADDED ${olt_of_id} | grep -v deviceId | grep -v ETH_TYPE:lldp | wc -l
     Should Be Equal As Integers    ${access_flows_added}    ${expected_flows}
 
+Verify Device Flows Removed
+    [Arguments]    ${ip}    ${port}    ${olt_of_id}
+    [Documentation]    Verifies all flows are removed from the device
+    ${device_flows}=    Execute ONOS CLI Command    ${ip}    ${port}
+    ...    flows -s -f ${olt_of_id} | grep -v deviceId | wc -l
+    Should Be Equal As Integers    ${device_flows}    0
+
 Verify Eapol Flows Added
     [Arguments]    ${ip}    ${port}    ${expected_flows}
     [Documentation]    Matches for number of eapol flows based on number of onus