[VOL-4556] Added TT uni-tag subscriber provision/un-provision verification

Change-Id: I8e6fd5b0e1641cf1851a77a1d45bc7cb88f13429
diff --git a/libraries/onos.robot b/libraries/onos.robot
index c996977..f1884ef 100755
--- a/libraries/onos.robot
+++ b/libraries/onos.robot
@@ -993,3 +993,17 @@
     ...    curl --fail -sSL ${url}/onos/v1/applications/${app_name}
     Should Be Equal As Integers    ${rc}    0   Can't read app ${app_name} details from ONOS
     [Return]    ${output}
+
+Verify UniTag Subscriber
+    [Documentation]    Verifies the unitag subscriber is provisioned/un-provisioned
+    [Arguments]    ${ip}    ${port}    ${dev_id}    ${onu_port}    ${stag}    ${ctag}    ${tpid}    ${sub_added}=True
+    ${cmd}=    Catenate    SEPARATOR=
+    ...    volt-programmed-subscribers ${dev_id} ${onu_port} | grep "ponCTag=${ctag}, ponSTag=${stag}" | grep technologyProfileId
+    ...    =${tpid} --color=none
+    ${subscriber}=    Execute ONOS CLI Command use single connection     ${ip}    ${port}    ${cmd}
+    Log    ${subscriber}
+    ${sub_count}=    Get Line Count    ${subscriber}
+    Run Keyword If    ${sub_added}
+    ...    Should Be Equal As Integers    ${sub_count}    1    UniTag Subscriber Not Added
+    ...    ELSE
+    ...    Should Be Equal As Integers    ${sub_count}    0    UniTag Subscriber Not Removed