Added verification of the OpenFlow controller connection.
[integration/test.git] / test / csit / suites / ovsdb / Openstack_Neutron / 001__connection_manager.robot
index 9bd24bfe268cafaf83b3a1a1d3e68b00e7f129bb..781cc37e202ce13fdaea9163e36444fc9cc848d7 100644 (file)
@@ -50,11 +50,14 @@ Get manager connection
     Should Contain    ${manager}    true
 
 Get controller connection
-    [Documentation]    This will make sure the controller is correctly set up/connected
+    [Documentation]    This will verify if the OpenFlow controller is connected on all bridges
     [Tags]    OVSDB netvirt
     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
-    Should Contain    ${output}    Manager "tcp:${CONTROLLER}:${OVSDB_PORT}"
-    Should Contain    ${output}    is_connected: true
+    ${lines}=    Get Lines Containing String    ${output}    is_connected
+    ${list}=    Split String    ${lines}    \n
+    Remove From List    ${list}    0
+    : FOR    ${controller}    IN    @{list}
+    \    Should Contain    ${controller}    true
 
 Get bridge setup
     [Documentation]    This request is verifying that the br-int bridge has been created