X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fovsdb%2FOpenstack_Neutron%2F001__connection_manager.robot;h=406e8afd410908c43f0bcfda9f7dfd1138c13288;hb=63342e0454b82783a6ef7a9b19e1698b9b5cd621;hp=9217eed14794a056bacc84424695ef8e43efce6f;hpb=519dde2f454f7a8b1e4a71f43e97fdf0b9415b77;p=integration%2Ftest.git diff --git a/csit/suites/ovsdb/Openstack_Neutron/001__connection_manager.robot b/csit/suites/ovsdb/Openstack_Neutron/001__connection_manager.robot index 9217eed147..406e8afd41 100644 --- a/csit/suites/ovsdb/Openstack_Neutron/001__connection_manager.robot +++ b/csit/suites/ovsdb/Openstack_Neutron/001__connection_manager.robot @@ -1,7 +1,8 @@ *** Settings *** Documentation Test suite connecting ODL to Mininet -Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} +Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} Suite Teardown Delete All Sessions +Test Teardown Collect OVSDB Debugs Library SSHLibrary Library Collections Library OperatingSystem @@ -11,6 +12,7 @@ Library RequestsLibrary Library ../../../libraries/Common.py Variables ../../../variables/Variables.py Resource ../../../libraries/Utils.robot +Resource ../../../libraries/OVSDB.robot *** Variables *** ${OVSDB_PORT} 6640 @@ -34,17 +36,17 @@ ${PING_NOT_CONTAIN} Destination Host Unreachable Make the OVS instance to listen for connection [Documentation] Connect OVS to ODL [Tags] OVSDB netvirt - Clean Up Ovs ${MININET} - Run Command On Remote System ${MININET} sudo ovs-vsctl set-manager tcp:${CONTROLLER}:${OVSDB_PORT} - ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show - ${pingresult} Run Command On Remote System ${MININET} ping ${CONTROLLER} -c 4 + Clean Up Ovs ${TOOLS_SYSTEM_IP} + Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl set-manager tcp:${ODL_SYSTEM_IP}:${OVSDB_PORT} + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show + ${pingresult} Run Command On Remote System ${TOOLS_SYSTEM_IP} ping ${ODL_SYSTEM_IP} -c 4 Should Not Contain ${pingresult} ${PING_NOT_CONTAIN} Wait Until Keyword Succeeds 8s 2s Check For Elements At URI ${OPERATIONAL_TOPO_API} ${node_list} Get manager connection [Documentation] This will verify if the OVS manager is connected [Tags] OVSDB netvirt - ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show ${lines}= Get Lines Containing String ${output} is_connected ${manager}= Get Line ${lines} 0 Should Contain ${manager} true @@ -52,7 +54,7 @@ Get manager connection Get controller connection [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 + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show ${lines}= Get Lines Containing String ${output} is_connected ${list}= Split String ${lines} \n Remove From List ${list} 0 @@ -62,26 +64,26 @@ Get controller connection Get bridge setup [Documentation] This request is verifying that the br-int bridge has been created [Tags] OVSDB netvirt - ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show - Should Contain ${output} Controller "tcp:${CONTROLLER}:${OF_PORT}" + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show + Should Contain ${output} Controller "tcp:${ODL_SYSTEM_IP}:${OF_PORT}" Should Contain ${output} Bridge br-int Get port setup [Documentation] This will check the port br-int has been created [Tags] OVSDB netvirt - ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show Should Contain ${output} Port br-int Get interface setup [Documentation] This verify the interface br-int has been created [Tags] OVSDB netvirt - ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show Should Contain ${output} Interface br-int Get the bridge flows [Documentation] This request fetch the OF13 flow tables to verify the flows are correctly added [Tags] OVSDB netvirt - ${output} Run Command On Remote System ${MININET} sudo ovs-ofctl -O Openflow13 dump-flows br-int + ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-ofctl -O Openflow13 dump-flows br-int Should Contain ${output} ${FLOWS_TABLE_20} Should Contain ${output} ${FLOW_CONTROLLER} Should Contain ${output} ${FLOWS_TABLE_30}