[Tags] adsal
Log ${TOPO_TREE_LEVEL}
${topo_nodes} Get Nodes From Topology ${TOPO_TREE_LEVEL}
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${jsondata}= To JSON ${resp.content}
${nodes} Extract All Nodes ${jsondata}
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s1-eth1
Should Contain ${resp.content} s1-eth2
Check node 2 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s2-eth1
Should Contain ${resp.content} s2-eth2
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s3-eth1
Should Contain ${resp.content} s3-eth2
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
${node} Create Dictionary id=${node_id} type={node_type}
Add property to node
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Add property to node
- ${resp} RequestsLibrary.Put ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
+ ${resp} RequestsLibrary.Put Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
Should Be Equal As Strings ${resp.status_code} 201 Response status code error
Remove property from node
[Arguments] ${node_type} ${node_id} ${property}
[Documentation] Remove property from node
- ${resp} RequestsLibrary.Delete ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
+ ${resp} RequestsLibrary.Delete Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
Should Be Equal As Strings ${resp.status_code} 204 Response status code error
Add property to nodeconnector
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Add property to nodeconnector
- ${resp} RequestsLibrary.Put ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
+ ${resp} RequestsLibrary.Put Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
Should Be Equal As Strings ${resp.status_code} 201 Response status code error
Remove property from nodeconnector
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property}
[Documentation] Remove property from nodeconnector
- ${resp} RequestsLibrary.Delete ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
+ ${resp} RequestsLibrary.Delete Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
Should Be Equal As Strings ${resp.status_code} 204 Response status code error
Node property should exist
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Property of node should exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Node property should not exist
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Property of node should not exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Nodeconnector property should exist
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Property of nodeconnector should exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Nodeconnector property should not exist
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Property of nodeconnector should not exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
[Tags] adsal
${body} Set Variable {"name":"${name}", "status":"Success", "srcNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:02", "dstNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:03"}
${expected_content} To JSON ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/userLinks
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} userLinks
[Documentation] Remove a userlink, list to validate the result.
[Tags] adsal
${expected_content} Create Dictionary name=${name} status=Success srcNodeConnector=OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector=OF|1@OF|00:00:00:00:00:00:00:03
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/userLinks
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} userLinks
[Tags] adsal
${body} Set Variable {"installInHw":"true","name":"flow1","node":{"id":"00:00:00:00:00:00:00:02","type":"OF"},"priority":"1","etherType":"0x800","nwDst":"10.0.0.1/32","actions":["OUTPUT=1"]}
${expected_content} To JSON ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} flowConfig
${actions} Create List OUTPUT=1
${expected_content} Create Dictionary name=${name} installInHw=true node=${node} priority=1 etherType=0x800
... nwDst=10.0.0.1/32 actions=${actions}
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
Should Be Equal As Strings ${resp.status_code} 204
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} flowConfig
[Tags] adsal
Log ${TOPO_TREE_LEVEL}
${topo_nodes} Get Nodes From Topology ${TOPO_TREE_LEVEL}
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${jsondata}= To JSON ${resp.content}
${nodes} Extract All Nodes ${jsondata}
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s1-eth1
Should Contain ${resp.content} s1-eth2
Check node 2 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:02
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s2-eth1
Should Contain ${resp.content} s2-eth2
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:03
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
Should Contain ${resp.content} s3-eth1
Should Contain ${resp.content} s3-eth2
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
${node} Create Dictionary id=${node_id} type={node_type}
Add property to node
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Add property to node
- ${resp} RequestsLibrary.Put ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
+ ${resp} RequestsLibrary.Put Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}/${value}
Should Be Equal As Strings ${resp.status_code} 201 Response status code error
Remove property from node
[Arguments] ${node_type} ${node_id} ${property}
[Documentation] Remove property from node
- ${resp} RequestsLibrary.Delete ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
+ ${resp} RequestsLibrary.Delete Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}/property/${property}
Should Be Equal As Strings ${resp.status_code} 204 Response status code error
Add property to nodeconnector
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Add property to nodeconnector
- ${resp} RequestsLibrary.Put ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
+ ${resp} RequestsLibrary.Put Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}/${value}
Should Be Equal As Strings ${resp.status_code} 201 Response status code error
Remove property from nodeconnector
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property}
[Documentation] Remove property from nodeconnector
- ${resp} RequestsLibrary.Delete ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
+ ${resp} RequestsLibrary.Delete Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodeconnector/${node_type}/${node_id}/${nc_type}/${nc_id}/property/${property}
Should Be Equal As Strings ${resp.status_code} 204 Response status code error
Node property should exist
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Property of node should exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Node property should not exist
[Arguments] ${node_type} ${node_id} ${property} ${value}
[Documentation] Property of node should not exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/nodes
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Nodeconnector property should exist
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Property of nodeconnector should exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
Nodeconnector property should not exist
[Arguments] ${node_type} ${node_id} ${nc_type} ${nc_id} ${property} ${value}
[Documentation] Property of nodeconnector should not exist
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/${CONTAINER}/node/${node_type}/${node_id}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${result} TO JSON ${resp.content}
Log ${result}
[Tags] adsal
${body} Set Variable {"name":"${name}", "status":"Success", "srcNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:02", "dstNodeConnector":"OF|1@OF|00:00:00:00:00:00:00:03"}
${expected_content} To JSON ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/userLinks
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} userLinks
[Documentation] Remove a userlink, list to validate the result.
[Tags] adsal
${expected_content} Create Dictionary name=${name} status=Success srcNodeConnector=OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector=OF|1@OF|00:00:00:00:00:00:00:03
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/userLinks
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} userLinks
[Tags] adsal
${body} Set Variable {"installInHw":"true","name":"flow1","node":{"id":"00:00:00:00:00:00:00:02","type":"OF"},"priority":"1","etherType":"0x800","nwDst":"10.0.0.1/32","actions":["OUTPUT=1"]}
${expected_content} To JSON ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} flowConfig
${actions} Create List OUTPUT=1
${expected_content} Create Dictionary name=${name} installInHw=true node=${node} priority=1 etherType=0x800
... nwDst=10.0.0.1/32 actions=${actions}
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
Should Be Equal As Strings ${resp.status_code} 204
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
${resp_content} Get From Dictionary ${result} flowConfig
*** Test Cases ***
Sending Barrier
[Documentation] Test to send barrier
- ${resp}= RequestsLibrary.Post session ${send_barrier_url} data=${RPC_SEND_BARRIER_DATA} headers=${HEADERS_XML}
+ ${resp}= RequestsLibrary.Post Request session ${send_barrier_url} data=${RPC_SEND_BARRIER_DATA} headers=${HEADERS_XML}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Sending Echo
[Documentation] Test to send echo
- ${resp}= RequestsLibrary.Post session ${send_echo_url} data=${RPC_SEND_ECHO_DATA} headers=${HEADERS_XML}
+ ${resp}= RequestsLibrary.Post Request session ${send_echo_url} data=${RPC_SEND_ECHO_DATA} headers=${HEADERS_XML}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Are Switches Connected Topo
[Documentation] Checks wheather switches are connected to controller
- ${resp}= RequestsLibrary.Get session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
+ ${resp}= RequestsLibrary.Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
Log ${resp.content}
${count}= Get Element Count ${resp.content} xpath=node
Should Be Equal As Numbers ${count} 1
*** Test Cases ***
Sending Update Table
[Documentation] Test to send table update request
- ${resp}= RequestsLibrary.Post session ${send_update_table_url} data=${RPC_SEND_UPDATE_TABLE_DATA} headers=${HEADERS_XML}
+ ${resp}= RequestsLibrary.Post Request session ${send_update_table_url} data=${RPC_SEND_UPDATE_TABLE_DATA} headers=${HEADERS_XML}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Are Switches Connected Topo
[Documentation] Checks wheather switches are connected to controller
- ${resp}= RequestsLibrary.Get session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
+ ${resp}= RequestsLibrary.Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
Log ${resp.content}
${count}= Get Element Count ${resp.content} xpath=node
Should Be Equal As Numbers ${count} 1
Are Switches Connected Topo
[Documentation] Checks wheather switches are connected to controller
- ${resp}= RequestsLibrary.Get session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
+ ${resp}= RequestsLibrary.Get Request session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
Log ${resp.content}
${count}= Get Element Count ${resp.content} xpath=node
Should Be Equal As Numbers ${count} 1
Delete Flow
[Documentation] Removes used flow
- ${resp}= RequestsLibrary.Delete session ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+ ${resp}= RequestsLibrary.Delete Request session ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
Log ${resp.content}
${msg}= Set Variable Delete flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
Should Be Equal As Strings ${resp.status_code} 200 msg=${msg}
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
[Tags] Push
${body} OperatingSystem.Get File ${FILE}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${HEADERS_XML} data=${body}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW} headers=${ACCEPT_XML}
Should Be Equal As Strings ${resp.status_code} 200
compare xml ${body} ${resp.content}
Remove a flow - Output to physical port#
[Documentation] Remove a flow
[Tags] remove
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/${TABLE}/flow/${FLOW}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/${TABLE}
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/${TABLE}
Should Not Contain ${resp.content} ${FLOW}
Verify flows after deleting flow config on OVS
Flow Presence Config Flow
${headers}= Create Dictionary Accept=application/xml
- ${resp}= RequestsLibrary.Get session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} headers=${headers}
+ ${resp}= RequestsLibrary.Get Request session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} headers=${headers}
Log ${resp}
Log ${resp.content}
Return From Keyword If ${resp.status_code}!=200 ${False} ${EMPTY}
Flow Presence Operational Table
${headers}= Create Dictionary Accept=application/xml
- ${resp}= RequestsLibrary.Get session /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id} headers=${headers}
+ ${resp}= RequestsLibrary.Get Request session /restconf/operational/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id} headers=${headers}
Log ${resp}
Log ${resp.content}
Return From Keyword If ${resp.status_code}!=200 ${False} ${EMPTY}
Add Flow
Log ${data}
- ${resp}= RequestsLibrary.Put session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} headers=${HEADERS_XML} data=${data}
+ ${resp}= RequestsLibrary.Put Request session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} headers=${HEADERS_XML} data=${data}
${msg}= Set Variable Adding flow for /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
Should Be Equal As Strings ${resp.status_code} 200 msg=${msg}
Delete Flow
- ${resp}= RequestsLibrary.Delete session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+ ${resp}= RequestsLibrary.Delete Request session /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
${msg}= Set Variable Delete flow for /restconf/config/opendaylight-inventory:nodes/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
Should Be Equal As Strings ${resp.status_code} 200 msg=${msg}
[Tags] Push
${body} OperatingSystem.Get File ${GROUP}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT_CF}/group/1 headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT_CF}/group/1 headers=${HEADERS_XML} data=${body}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding group config
[Documentation] Get the group stat in config
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/group/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/group/1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ${GROUP_NAME}
[Tags] Push
${body} OperatingSystem.Get File ${FLOW}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT_CF}/table/0/flow/1 headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT_CF}/table/0/flow/1 headers=${HEADERS_XML} data=${body}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/table/0/flow/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/table/0/flow/1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ${FLOW_NAME}
Remove the flow
[Documentation] Remove the flow
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT_CF}/table/0/flow/1
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT_CF}/table/0/flow/1
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow
[Documentation] Verify the flow removal
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/table/0/flow/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/table/0/flow/1
Should Not Contain ${resp.content} ${FLOW_NAME}
Delete the group
[Documentation] Remove the group
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT_CF}/group/1
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT_CF}/group/1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting group
[Documentation] Verify the flow removal
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/group/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/group/1
Should Not Contain ${resp.content} ${GROUP_NAME}
[Tags] Push
${body} OperatingSystem.Get File ${METER}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT_CF}/meter/1 headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT_CF}/meter/1 headers=${HEADERS_XML} data=${body}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding meter config
[Documentation] Get the meter stat in config
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/meter/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/meter/1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ${METER_NAME}
[Tags] Push
${body} OperatingSystem.Get File ${FLOW}
Set Suite Variable ${body}
- ${resp} RequestsLibrary.Put session ${REST_CONTEXT_CF}/table/0/flow/2 headers=${HEADERS_XML} data=${body}
+ ${resp} RequestsLibrary.Put Request session ${REST_CONTEXT_CF}/table/0/flow/2 headers=${HEADERS_XML} data=${body}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config
[Documentation] Verify the flow
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/table/0/flow/2
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/table/0/flow/2
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} ${FLOW_NAME}
Remove the flow
[Documentation] Remove the flow
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT_CF}/table/0/flow/2
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT_CF}/table/0/flow/2
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow
[Documentation] Verify the flow removal
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/table/0/flow/2
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/table/0/flow/2
Should Not Contain ${resp.content} ${FLOW_NAME}
Delete the meter
[Documentation] Remove the meter
[Tags] Delete
- ${resp} RequestsLibrary.Delete session ${REST_CONTEXT_CF}/meter/1
+ ${resp} RequestsLibrary.Delete Request session ${REST_CONTEXT_CF}/meter/1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting meter
[Documentation] Verify the flow removal
[Tags] Get
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT_CF}/meter/1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT_CF}/meter/1
Should Not Contain ${resp.content} ${METER_NAME}
Get nodeconnector for the root node
[Documentation] Get the inventory for the root node
${TOPO_TREE_FANOUT} Convert To Integer ${TOPO_TREE_FANOUT}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Wait Until Keyword Succeeds 30s 2s Check conn loop ${TOPO_TREE_FANOUT} 1 ${resp.content}
*** Keywords ***
Check Every Nodes
[Arguments] ${numnodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${IND} IN RANGE 1 ${numnodes+1}
\ Should Contain ${resp.content} openflow:${IND}
Check Every Nodes Stats
[Arguments] ${numnodes}
: FOR ${IND} IN RANGE 1 ${numnodes+1}
- \ ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:${IND}
+ \ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Should Contain ${resp.content} flow-capable-node-connector-statistics
Check Every Nodes Nodeconnector
[Arguments] ${numnodes}
: FOR ${IND} IN RANGE 2 ${numnodes+1}
- \ ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:${IND}
+ \ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Check conn loop ${TOPO_TREE_FANOUT+1} ${IND} ${resp.content}
*** Keywords ***
Verify Element Count
[Arguments] ${URI} ${xpath_location} ${expected_count}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT} headers=${ACCEPT_XML}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${count}= Get Element Count ${resp.content} xpath=${xpath_location}
[Tags] adsal
Log ${TOPO_TREE_LEVEL}
${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT})
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${jsondata}= To JSON ${resp.content}
Check root node connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${TOPO_TREE_FANOUT} Convert To Integer ${TOPO_TREE_FANOUT}
[Arguments] ${topo_nodes}
: FOR ${ITEM} IN @{topo_nodes}
\ ${IND} Get From Dictionary ${ITEM} id
- \ ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/${IND}
+ \ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Check conn loop ${TOPO_TREE_FANOUT+1} ${IND} ${resp.content}
*** Keywords ***
Check For Correct Number Of Nodes At URI
[Arguments] ${uri} ${topo_nodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/${uri}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain X Times ${resp.content} "00:00:00:00:00:00:00:01" ${TOPO_TREE_FANOUT+2}
Check For All Nodes At URI
[Arguments] ${uri} ${topo_nodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/${uri}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${ITEM} IN @{topo_nodes}
*** Keywords ***
Check Link Counts For Each Node
[Arguments] ${topo_nodes} ${leaflist}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain X Times ${resp.content} "00:00:00:00:00:00:00:01" ${TOPO_TREE_FANOUT*2}
Get nodeconnector for the root node
[Documentation] Get the inventory for the root node
${TOPO_TREE_FANOUT} Convert To Integer ${TOPO_TREE_FANOUT}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Wait Until Keyword Succeeds 30s 2s Check conn loop ${TOPO_TREE_FANOUT} 1 ${resp.content}
*** Keywords ***
Check Every Nodes
[Arguments] ${numnodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${IND} IN RANGE 1 ${numnodes+1}
\ Should Contain ${resp.content} openflow:${IND}
Check Every Nodes Stats
[Arguments] ${numnodes}
: FOR ${IND} IN RANGE 1 ${numnodes+1}
- \ ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:${IND}
+ \ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Should Contain ${resp.content} flow-capable-node-connector-statistics
Check Every Nodes Nodeconnector
[Arguments] ${numnodes}
: FOR ${IND} IN RANGE 2 ${numnodes+1}
- \ ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/node/openflow:${IND}
+ \ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/node/openflow:${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Check conn loop ${TOPO_TREE_FANOUT+1} ${IND} ${resp.content}
*** Keywords ***
Verify Element Count
[Arguments] ${URI} ${xpath_location} ${expected_count}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT} headers=${ACCEPT_XML}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT} headers=${ACCEPT_XML}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${count}= Get Element Count ${resp.content} xpath=${xpath_location}
[Tags] adsal
Log ${TOPO_TREE_LEVEL}
${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT})
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${jsondata}= To JSON ${resp.content}
Check root node connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] adsal
- ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
+ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/00:00:00:00:00:00:00:01
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200 Response status code error
${TOPO_TREE_FANOUT} Convert To Integer ${TOPO_TREE_FANOUT}
[Arguments] ${topo_nodes}
: FOR ${ITEM} IN @{topo_nodes}
\ ${IND} Get From Dictionary ${ITEM} id
- \ ${resp} RequestsLibrary.Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/${IND}
+ \ ${resp} RequestsLibrary.Get Request ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/OF/${IND}
\ Log ${resp.content}
\ Should Be Equal As Strings ${resp.status_code} 200
\ Check conn loop ${TOPO_TREE_FANOUT+1} ${IND} ${resp.content}
*** Keywords ***
Check For Correct Number Of Nodes At URI
[Arguments] ${uri} ${topo_nodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/${uri}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain X Times ${resp.content} "00:00:00:00:00:00:00:01" ${TOPO_TREE_FANOUT+2}
Check For All Nodes At URI
[Arguments] ${uri} ${topo_nodes}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}/${uri}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
: FOR ${ITEM} IN @{topo_nodes}
*** Keywords ***
Check Link Counts For Each Node
[Arguments] ${topo_nodes} ${leaflist}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/${CONTAINER}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
Should Contain X Times ${resp.content} "00:00:00:00:00:00:00:01" ${TOPO_TREE_FANOUT*2}
Set Suite Variable ${SW_HARDWARE} "flow-node-inventory:manufacturer":"${HARDWARE}"
Set Suite Variable @{SW_CAPABILITIES} "flow-node-inventory:flow-feature-capability-flow-stats" "flow-node-inventory:flow-feature-capability-table-stats" "flow-node-inventory:flow-feature-capability-port-stats" "flow-node-inventory:flow-feature-capability-queue-stats"
Wait Until Keyword Succeeds 30s 2s Ensure All Nodes Are In Response ${REST_CONTEXT} ${node_list}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Get node 1 inventory
Get RESTCONF Topology
[Documentation] Get RESTCONF Topology and validate the result.
Wait Until Keyword Succeeds 30s 2s Ensure All Nodes Are In Response ${REST_CONTEXT} ${node_list}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
List all the links
*** Keywords ***
Verify Links
[Arguments] ${expected_links}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/topology/flow:1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/topology/flow:1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
*** Test Cases ***
Add a flow - Output to physical port#
[Documentation] Push a flow through REST-API
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/0/flow/152 headers=${HEADERS_XML} data=${BODY2}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/0/flow/152 headers=${HEADERS_XML} data=${BODY2}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Output to physical port#
[Documentation] Verify the flow
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/0
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/0
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} 152
Remove a flow - Output to physical port#
[Documentation] Remove a flow
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/0/flow/152
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/0/flow/152
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/0
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/0
Should Be Equal As Strings ${resp.status_code} 200
Should Not Contain ${resp.content} 152
# Standing bug #368 - This has been fixed
Set Suite Variable ${SW_HARDWARE} "flow-node-inventory:manufacturer":"${HARDWARE}"
Set Suite Variable @{SW_CAPABILITIES} "flow-node-inventory:flow-feature-capability-flow-stats" "flow-node-inventory:flow-feature-capability-table-stats" "flow-node-inventory:flow-feature-capability-port-stats" "flow-node-inventory:flow-feature-capability-queue-stats"
Wait Until Keyword Succeeds 30s 2s Ensure All Nodes Are In Response ${REST_CONTEXT} ${node_list}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
Get node 1 inventory
Get RESTCONF Topology
[Documentation] Get RESTCONF Topology and validate the result.
Wait Until Keyword Succeeds 30s 2s Ensure All Nodes Are In Response ${REST_CONTEXT} ${node_list}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}
Log ${resp.content}
List all the links
*** Keywords ***
Verify Links
[Arguments] ${expected_links}
- ${resp} RequestsLibrary.Get session ${REST_CONTEXT}/topology/flow:1
+ ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/topology/flow:1
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${result} To JSON ${resp.content}
*** Test Cases ***
Add a flow - Sending IPv4 Dest Address and Eth type
[Documentation] Push a flow through REST-API
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/2/flow/139 headers=${HEADERS_XML} data=${BODY1}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/2/flow/139 headers=${HEADERS_XML} data=${BODY1}
Should Be Equal As Strings ${resp.status_code} 200
Verify after adding flow config - Sending IPv4 Dest Address and Eth type
[Documentation] Verify the flow
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/2
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/2
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} 139
Modify a flow - Output to physical port#
[Documentation] Push a flow through REST-API
- ${resp} RequestsLibrary.Put session ${REST_CON}/node/openflow:1/table/2/flow/139 headers=${HEADERS_XML} data=${BODY2}
+ ${resp} RequestsLibrary.Put Request session ${REST_CON}/node/openflow:1/table/2/flow/139 headers=${HEADERS_XML} data=${BODY2}
Should Be Equal As Strings ${resp.status_code} 200
Verify after modifying flow config - Output to physical port#
[Documentation] Verify the flow
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/2
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/2
Should Be Equal As Strings ${resp.status_code} 200
Should Contain ${resp.content} 10.0.20.1
Remove a flow - Output to physical port#
[Documentation] Remove a flow
- ${resp} RequestsLibrary.Delete session ${REST_CON}/node/openflow:1/table/2/flow/139
+ ${resp} RequestsLibrary.Delete Request session ${REST_CON}/node/openflow:1/table/2/flow/139
Should Be Equal As Strings ${resp.status_code} 200
Verify after deleting flow config - Output to physical port#
[Documentation] Verify the flow
- ${resp} RequestsLibrary.Get session ${REST_CON}/node/openflow:1/table/2
+ ${resp} RequestsLibrary.Get Request session ${REST_CON}/node/openflow:1/table/2
Should Be Equal As Strings ${resp.status_code} 200
Should Not Contain ${resp.content} 139