[VOL-4256] Upgraded DT soak job with bbsim subscriber provisioning

Change-Id: I7a828927f29b652feff1dc769912b35f03566139
diff --git a/libraries/onos.robot b/libraries/onos.robot
index 82d6f76..d5a859c 100755
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -742,6 +742,14 @@
     ...    /onos/olt/oltapp/${of_id}/${onu_port}
     Should Be Equal As Strings    ${resp.status_code}    200
 
+Count Enabled UNI Ports
+    [Documentation]    Count all the UNI Ports on a Device
+    [Arguments]     ${ip}    ${port}   ${of_id}
+    ${count}=    Execute ONOS CLI Command use single connection    ${ip}    ${port}
+    ...    ports -e ${of_id} | grep -v SWITCH | grep -v nni | wc -l
+    Log    ${count}
+    [Return]    ${count}
+
 List Enabled UNI Ports
     [Documentation]  List all the UNI Ports, the only way we have is to filter out the one called NNI
     ...     Creates a list of dictionaries