siab test to check for xconnect created also in onos

Change-Id: I5bc20944d0f8fe826e7ee399b04283d528c17107
diff --git a/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot b/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
index be9531a..5eb4df8 100644
--- a/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
+++ b/src/test/cord-api/Tests/WorkflowValidations/SIAB.robot
@@ -331,11 +331,12 @@
     Wait Until Keyword Succeeds    60s    2s    Validate Subscriber Status    enabled    ${onu_device}
     Wait Until Keyword Succeeds    60s    2s    Validate Subscriber Service Chain    ${onu_device}    True
     Wait Until Keyword Succeeds    60s    2s    Validate Fabric CrossConnect SI    ${s_tag}    True
+    Wait Until Keyword Succeeds    60s    2s    Validate XConnect in ONOS    True
 
 No Subscriber Service Chain
     Wait Until Keyword Succeeds    60s    2s    Validate Subscriber Service Chain    ${onu_device}    False
     Wait Until Keyword Succeeds    60s    2s    Validate Fabric CrossConnect SI    ${s_tag}    False
-    Wait Until Keyword Succeeds    60s    2s    Validate XConnect Removed from ONOS
+    Wait Until Keyword Succeeds    60s    2s    Validate XConnect in ONOS    False
 
 Simple Setup
     ${datetime}=    Get Current Datetime On Kubernetes Node    ${kube_node_ip}     ${local_user}    ${local_pass}
@@ -401,6 +402,8 @@
     ${RG_CONTAINER}=    Run    kubectl -n voltha get pod|grep "^rg-"|cut -d' ' -f1
     Set Suite Variable    ${RG_CONTAINER}
 
-Validate XConnect Removed from ONOS
-    ${output}=    Run    http -a karaf:karaf GET http://127.0.0.1:30120/onos/segmentrouting/xconnect
-    Should Contain   ${output}    {"xconnects":[]}
\ No newline at end of file
+Validate XConnect in ONOS
+    [Arguments]    ${exists}=True
+    ${rc}=    Run And Return RC    http -a karaf:karaf GET http://127.0.0.1:30120/onos/segmentrouting/xconnect|jq -r '.xconnects[].vlanId'|grep 222
+    Run Keyword If    '${exists}' == 'True'    Should Be Equal As Integers    ${rc}    0
+    ...                                           ELSE    Should Be Equal As Integers    ${rc}    1
\ No newline at end of file