+ [Teardown] BuiltIn.Run Keywords Test Teardown
+ ... AND RequestsLibrary.DELETE On Session session url=${RFC8040_SOUTHBOUND_NODE_API}${node_id}%2Fbridge%2F${BRIDGE} expected_status=anything
+ ... AND RequestsLibrary.DELETE On Session session url=${RFC8040_SOUTHBOUND_NODE_API}${node_id} expected_status=anything
+
+Bug 8280
+ [Documentation] Any config created for a bridge (e.g. added ports) should be reconciled when a bridge is
+ ... reconnected. This test case will create two ports via REST and validate that the bridge has those
+ ... ports. At that point, the bridge will be disconnected from the controller and the 2nd created port
+ ... will be manually removed. The bridge will be reconnected and the 2nd port should be re-added to the
+ ... bridge. If not, then bug 8280 will be found and the test case will fail
+ [Tags] 8280
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl set-manager tcp:${ODL_SYSTEM_IP}:${OVSDBPORT}
+ BuiltIn.Wait Until Keyword Succeeds 5s 1s OVSDB.Verify OVS Reports Connected ${TOOLS_SYSTEM_IP}
+ ${OVSDB_UUID2} = Get OVSDB UUID ${TOOLS_SYSTEM_IP}
+ BuiltIn.Set Suite Variable ${OVSDB_UUID2}
+ OVSDB.Add Bridge To Ovsdb Node uuid/${OVSDB_UUID2} ${TOOLS_SYSTEM_IP} ${BRIDGE} 0000000000008280
+ OVSDB.Add Termination Point uuid/${OVSDB_UUID2} ${BRIDGE} port1
+ OVSDB.Add Termination Point uuid/${OVSDB_UUID2} ${BRIDGE} port2
+ ${config_store_elements} = BuiltIn.Create List ${BRIDGE} port1 port2
+ Utils.Check For Elements At URI ${RFC8040_CONFIG_TOPO_API} ${config_store_elements} pretty_print_json=True
+ ${ovs_output} = Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show
+ BuiltIn.Log ${ovs_output}
+ ${ovs_output} = Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-manager
+ ${ovs_output} = Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-port ${BRIDGE} port2
+ OVSDB.Verify Ovs-vsctl Output show Port "port2" ${TOOLS_SYSTEM_IP} False
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl set-manager tcp:${ODL_SYSTEM_IP}:${OVSDBPORT}
+ BuiltIn.Wait Until Keyword Succeeds 5s 1s OVSDB.Verify OVS Reports Connected ${TOOLS_SYSTEM_IP}
+ Utils.Check For Elements At URI ${RFC8040_CONFIG_TOPO_API} ${config_store_elements} pretty_print_json=True
+ BuiltIn.Wait Until Keyword Succeeds 5s 1s Verify Ovs-vsctl Output show Port "port2"
+ [Teardown] BuiltIn.Run Keywords Test Teardown
+ ... AND RequestsLibrary.DELETE On Session session url=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${OVSDB_UUID2}%2Fbridge%2F${BRIDGE} expected_status=anything
+ ... AND RequestsLibrary.DELETE On Session session url=${RFC8040_SOUTHBOUND_NODE_API}uuid%2F${OVSDB_UUID2} expected_status=anything
+
+Bug 7160
+ [Documentation] If this bug is reproduced, it's possible that the operational store will be
+ ... stuck with leftover nodes and further system tests could fail. It's advised to run this
+ ... test last if possible. See the bug description for high level steps to reproduce
+ ... https://bugs.opendaylight.org/show_bug.cgi?id=7160#c0
+ [Tags] 7160
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl set-manager ptcp:${OVSDB_NODE_PORT}
+ OVSDB.Connect To OVSDB Node ${TOOLS_SYSTEM_IP}
+ BuiltIn.Wait Until Keyword Succeeds 5s 1s OVSDB.Verify OVS Reports Connected
+ ${qos} = BuiltIn.Set Variable QOS-1
+ ${queue} = BuiltIn.Set Variable QUEUE-1
+ OVSDB.Create Ovsdb Node ${TOOLS_SYSTEM_IP}
+ OVSDB.Log Config And Operational Topology
+ OVSDB.Create Qos ${qos}
+ OVSDB.Log Config And Operational Topology
+ OVSDB.Create Qos Linked Queue
+ OVSDB.Log Config And Operational Topology
+ RequestsLibrary.DELETE On Session
+ ... session
+ ... url=${RFC8040_SOUTHBOUND_NODE_HOST1_API}/ovsdb:qos-entries=${qos}/queue-list=0
+ OVSDB.Log Config And Operational Topology
+ RequestsLibrary.DELETE On Session
+ ... session
+ ... url=${RFC8040_SOUTHBOUND_NODE_HOST1_API}/ovsdb:qos-entries=${qos}
+ OVSDB.Log Config And Operational Topology
+ RequestsLibrary.DELETE On Session
+ ... session
+ ... url=${RFC8040_SOUTHBOUND_NODE_HOST1_API}/ovsdb:queues=${queue}
+ OVSDB.Log Config And Operational Topology
+ RequestsLibrary.DELETE On Session
+ ... session
+ ... url=${RFC8040_SOUTHBOUND_NODE_HOST1_API}
+ OVSDB.Log Config And Operational Topology
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-manager
+ RequestsLibrary.DELETE On Session
+ ... session
+ ... url=${RFC8040_SOUTHBOUND_NODE_TOOLS_API}
+ OVSDB.Log Config And Operational Topology
+ BuiltIn.Wait Until Keyword Succeeds 5s 1s OVSDB.Config and Operational Topology Should Be Empty
+