Get Config Topology with Bridge
[Documentation] This will fetch the configuration topology from configuration data store to verify the bridge is added to the data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ${BRIDGE}
+ BuiltIn.Should Contain ${resp.text} ${BRIDGE}
Get Operational Topology with Bridge
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes to verify the bridge is added to the data store
Verify Config Still Has OVS Info
[Documentation] This will fetch the configuration topology from configuration data store to verify the node is still in the data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
BuiltIn.Wait Until Keyword Succeeds 8s 2s Utils.Check For Elements At URI ${OPERATIONAL_TOPO_API}/topology/ovsdb:1 ${NODE_LIST} pretty_print_json=True
Get Config Topology After Reconnect
[Documentation] This will fetch the configuration topology from configuration data store after reconnect
${resp} RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
BuiltIn.Wait Until Keyword Succeeds 8s 2s Utils.Check For Elements At URI ${OPERATIONAL_TOPO_API}/topology/ovsdb:1 ${NODE_LIST} pretty_print_json=True
Get QOS Config Topology with port
[Documentation] This will fetch the configuration topology from configuration data store to verify the QOS is added to the data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
- BuiltIn.Should Contain ${resp.content} ${QOS}
+ BuiltIn.Should Contain ${resp.text} ${QOS}
Get QOS Operational Topology with port
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes to verify the QOS is added to the data store
Get Queue Config Topology with port
[Documentation] This request will fetch the configuration topology from configuration data store to verify the Queue is added to the data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
- BuiltIn.Should Contain ${resp.content} ${QUEUE}
+ BuiltIn.Should Contain ${resp.text} ${QUEUE}
Get Queue Operational Topology with port
[Documentation] This request will fetch the operational topology from the connected OVSDB nodes to verify the Queue is added to the data store
Get Config Topology to verify that deleted configurations are cleaned from config datastore
[Documentation] This request will fetch the configuration topology from configuration data store to verify OVSDB NODE is deleted frrom the configuration data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Contain ${ALLOWED_STATUS_CODES} ${resp.status_code}
- BuiltIn.Should Not Contain ${resp.content} ovsdb:HOST1
+ BuiltIn.Should Not Contain ${resp.text} ovsdb:HOST1
Check For Bug 4756
[Documentation] bug 4756 has been seen in the OVSDB Southbound suites. This test case should be one of the last test
Get Config Topology to verify the manually added bridge is not added to the config datastore
[Documentation] This request will fetch the configuration topology from configuration data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Not Contain ${resp.content} ovsdb://${TOOLS_SYSTEM_IP}:${OVSDB_NODE_PORT}/bridge/${BRIDGE1}
+ BuiltIn.Should Not Contain ${resp.text} ovsdb://${TOOLS_SYSTEM_IP}:${OVSDB_NODE_PORT}/bridge/${BRIDGE1}
Create a Bridge through controller
[Documentation] This will create bridge on the specified OVSDB node.
Get Config Topology to verify the entry added to the config datastore
[Documentation] This request will fetch the configuration topology from configuration data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE2}
+ BuiltIn.Should Contain ${resp.text} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE2}
Create bridge of already added bridge
[Documentation] This will add bridge to the config datastore
Get Config Topology to verify the entry of existing bridge added to the config datastore
[Documentation] This request will fetch the configuration topology from configuration data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE1}
+ BuiltIn.Should Contain ${resp.text} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE1}
Delete bridge manually
Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-br ${BRIDGE2}
Config Topology Still Contains Bridge
[Documentation] This request will fetch the configuration topology from configuration data store
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE2}
+ BuiltIn.Should Contain ${resp.text} ovsdb://uuid/${OVSDB_UUID}/bridge/${BRIDGE2}
Delete the Bridge through rest call
[Documentation] This request will delete the bridge node from the config data store.
${node} = BuiltIn.Set Variable uuid/${OVSDB_UUID}
OVSDB.Add Bridge To Ovsdb Node ${node} ${TOOLS_SYSTEM_IP} ${BRIDGE} 0000000000005177
${resp} = RequestsLibrary.Get Request session ${CONFIG_TOPO_API}
- OVSDB.Log Request ${resp.content}
+ OVSDB.Log Request ${resp.text}
BuiltIn.Should Be Equal As Strings ${resp.status_code} 200
- BuiltIn.Should Contain ${resp.content} ${node}/bridge/${BRIDGE}
+ BuiltIn.Should Contain ${resp.text} ${node}/bridge/${BRIDGE}
Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl set-manager tcp:${ODL_SYSTEM_IP}:${OVSDBPORT}
@{list} = BuiltIn.Create List ${BRIDGE}
BuiltIn.Wait Until Keyword Succeeds 8s 2s Utils.Check For Elements At URI ${OPERATIONAL_TOPO_API}/topology/ovsdb:1 ${list} pretty_print_json=True