Change-Id: I0bd41fe30ae9715f6138ad3e15f6f210947c6b32
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
12 files changed:
Library ../../../libraries/Common.py
Library ../../../libraries/SwitchManager.py
Variables ../../../variables/Variables.py
Library ../../../libraries/Common.py
Library ../../../libraries/SwitchManager.py
Variables ../../../variables/Variables.py
-Library ../../../libraries/Topologynew.py
+Library ../../../libraries/Topology.py
*** Variables ***
${REST_CONTEXT} /controller/nb/v2/switchmanager
*** Test Cases ***
*** Variables ***
${REST_CONTEXT} /controller/nb/v2/switchmanager
*** Test Cases ***
List all nodes
[Documentation] List all nodes and their properties in the network.
[Tags] list_info
List all nodes
[Documentation] List all nodes and their properties in the network.
[Tags] list_info
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:1
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:1:1
- Should Contain ${resp.content} openflow:1:2
+ 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] list_info
Check node 2 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:2
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:2:1
- Should Contain ${resp.content} openflow:2:2
- Should Contain ${resp.content} openflow:2:3
+ Should Contain ${resp.content} s2-eth1
+ Should Contain ${resp.content} s2-eth2
+ Should Contain ${resp.content} s2-eth3
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:3
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:3:1
- Should Contain ${resp.content} openflow:3:2
- Should Contain ${resp.content} openflow:3:3
+ Should Contain ${resp.content} s3-eth1
+ Should Contain ${resp.content} s3-eth2
+ Should Contain ${resp.content} s3-eth3
Add property to node
[Documentation] Add a property to node
Add property to node
[Documentation] Add a property to node
- Add property to node MD_SAL openflow:2 description Switch2
- Node property should exist MD_SAL openflow:2 description Switch2
-# Standing bug #335 - This has been fixed!
+ Add property to node OF 00:00:00:00:00:00:00:02 description Switch2
+ Node property should exist OF 00:00:00:00:00:00:00:02 description Switch2
#Remove property from node
# [Documentation] Remove a property from node
#Remove property from node
# [Documentation] Remove a property from node
-# Remove property from node MD_SAL openflow:2 description
-# Node property should not exist MD_SAL openflow:2 description Switch2
+# Remove property from node OF 00:00:00:00:00:00:00:02 description
+# Node property should not exist OF 00:00:00:00:00:00:00:02 description Switch2
Add property to nodeconnector
[Documentation] Add a property to nodeconnector
Add property to nodeconnector
[Documentation] Add a property to nodeconnector
- Add property to nodeconnector MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth 1000
- Nodeconnector property should exist MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth ${1000}
+ Add property to nodeconnector OF 00:00:00:00:00:00:00:02 OF 2 bandwidth 1000
+ Nodeconnector property should exist OF 00:00:00:00:00:00:00:02 OF 2 bandwidth ${1000}
+
Remove property from nodeconnector
[Documentation] Remove a property from nodeconnector
Remove property from nodeconnector
[Documentation] Remove a property from nodeconnector
- Remove property from nodeconnector MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth
- Nodeconnector property should not exist MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth ${1000}
+ Remove property from nodeconnector OF 00:00:00:00:00:00:00:02 OF 2 bandwidth
+ Nodeconnector property should not exist OF 00:00:00:00:00:00:00:02 OF 2 bandwidth ${1000}
*** Keywords ***
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
*** Keywords ***
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} Get ${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}
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}
Variables ../../../variables/Variables.py
*** Variables ***
Variables ../../../variables/Variables.py
*** Variables ***
-${node1} "openflow:1"
-${node2} "openflow:2"
-${node3} "openflow:3"
+${node1} "00:00:00:00:00:00:00:01"
+${node2} "00:00:00:00:00:00:00:02"
+${node3} "00:00:00:00:00:00:00:03"
${key} portStatistics
${REST_CONTEXT} /controller/nb/v2/statistics
${key} portStatistics
${REST_CONTEXT} /controller/nb/v2/statistics
Variables ../../../variables/Variables.py
*** Variables ***
Variables ../../../variables/Variables.py
*** Variables ***
-${node1} "openflow:1"
-${node2} "openflow:2"
-${node3} "openflow:3"
+${node1} "00:00:00:00:00:00:00:01"
+${node2} "00:00:00:00:00:00:00:02"
+${node3} "00:00:00:00:00:00:00:03"
${name} test_userlink1
${key} userLinks
${REST_CONTEXT} /controller/nb/v2/topology
${name} test_userlink1
${key} userLinks
${REST_CONTEXT} /controller/nb/v2/topology
[Documentation] Add a userlink, list to validate the result.
[Tags] add
${body} Create Dictionary name ${name} status Success srcNodeConnector
[Documentation] Add a userlink, list to validate the result.
[Tags] add
${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... MD_SAL|openflow:2:1@MD_SAL|openflow:2 dstNodeConnector MD_SAL|openflow:3:1@MD_SAL|openflow:3
+ ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
[Documentation] Remove a userlink, list to validate the result.
[Tags] remove
${body} Create Dictionary name ${name} status Success srcNodeConnector
[Documentation] Remove a userlink, list to validate the result.
[Tags] remove
${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... MD_SAL|openflow:2:1@MD_SAL|openflow:2 dstNodeConnector MD_SAL|openflow:3:1@MD_SAL|openflow:3
+ ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
*** Variables ***
${name} flow1
${key} flowConfig
*** Variables ***
${name} flow1
${key} flowConfig
+${node_id} 00:00:00:00:00:00:00:02
${REST_CONTEXT} /controller/nb/v2/flowprogrammer
${REST_CONTEXT_ST} /controller/nb/v2/statistics
${FLOW} "10.0.0.1"
${REST_CONTEXT} /controller/nb/v2/flowprogrammer
${REST_CONTEXT_ST} /controller/nb/v2/statistics
${FLOW} "10.0.0.1"
Add a flow
[Documentation] Add a flow, list to validate the result.
[Tags] add
Add a flow
[Documentation] Add a flow, list to validate the result.
[Tags] add
- ${node} Create Dictionary type MD_SAL id ${node_id}
- ${actions} Create List OUTPUT=openflow:2:1
+ ${node} Create Dictionary type OF id ${node_id}
+ ${actions} Create List OUTPUT=1
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
- ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/node/MD_SAL/${node_id}/staticFlow/${name} data=${body}
+ ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
Check flow in flow stats
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
Check flow in flow stats
- [Documentation] Show flow stats and validate result
- [Tags] get
- Sleep 30
+ [Documentation] Show flow stats and validate result
+ [Tags] get
+ Sleep 30
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Remove a flow
[Documentation] Remove a flow, list to validate the result.
[Tags] remove
Remove a flow
[Documentation] Remove a flow, list to validate the result.
[Tags] remove
- ${node} Create Dictionary type MD_SAL id ${node_id}
- ${actions} Create List OUTPUT=openflow:2:1
+ ${node} Create Dictionary type OF id ${node_id}
+ ${actions} Create List OUTPUT=1
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
- ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/node/MD_SAL/${node_id}/staticFlow/${name}
+ ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Library ../../../libraries/Common.py
Library ../../../libraries/SwitchManager.py
Variables ../../../variables/Variables.py
Library ../../../libraries/Common.py
Library ../../../libraries/SwitchManager.py
Variables ../../../variables/Variables.py
-Library ../../../libraries/Topologynew.py
+Library ../../../libraries/Topology.py
*** Variables ***
${REST_CONTEXT} /controller/nb/v2/switchmanager
*** Test Cases ***
*** Variables ***
${REST_CONTEXT} /controller/nb/v2/switchmanager
*** Test Cases ***
List all nodes
[Documentation] List all nodes and their properties in the network.
[Tags] list_info
List all nodes
[Documentation] List all nodes and their properties in the network.
[Tags] list_info
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
Check node 1 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:1
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:1:1
- Should Contain ${resp.content} openflow:1:2
+ 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] list_info
Check node 2 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:2
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:2:1
- Should Contain ${resp.content} openflow:2:2
- Should Contain ${resp.content} openflow:2:3
+ Should Contain ${resp.content} s2-eth1
+ Should Contain ${resp.content} s2-eth2
+ Should Contain ${resp.content} s2-eth3
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
Check node 3 connectors
[Documentation] List node connectors and verify all connectors are there
[Tags] list_info
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/node/MD_SAL/openflow:3
+ ${resp} Get ${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 Be Equal As Strings ${resp.status_code} 200 Response status code error
- Should Contain ${resp.content} openflow:3:1
- Should Contain ${resp.content} openflow:3:2
- Should Contain ${resp.content} openflow:3:3
+ Should Contain ${resp.content} s3-eth1
+ Should Contain ${resp.content} s3-eth2
+ Should Contain ${resp.content} s3-eth3
Add property to node
[Documentation] Add a property to node
Add property to node
[Documentation] Add a property to node
- Add property to node MD_SAL openflow:2 description Switch2
- Node property should exist MD_SAL openflow:2 description Switch2
-# Standing bug #335 - This has been fixed!
+ Add property to node OF 00:00:00:00:00:00:00:02 description Switch2
+ Node property should exist OF 00:00:00:00:00:00:00:02 description Switch2
#Remove property from node
# [Documentation] Remove a property from node
#Remove property from node
# [Documentation] Remove a property from node
-# Remove property from node MD_SAL openflow:2 description
-# Node property should not exist MD_SAL openflow:2 description Switch2
+# Remove property from node OF 00:00:00:00:00:00:00:02 description
+# Node property should not exist OF 00:00:00:00:00:00:00:02 description Switch2
Add property to nodeconnector
[Documentation] Add a property to nodeconnector
Add property to nodeconnector
[Documentation] Add a property to nodeconnector
- Add property to nodeconnector MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth 1000
- Nodeconnector property should exist MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth ${1000}
+ Add property to nodeconnector OF 00:00:00:00:00:00:00:02 OF 2 bandwidth 1000
+ Nodeconnector property should exist OF 00:00:00:00:00:00:00:02 OF 2 bandwidth ${1000}
+
Remove property from nodeconnector
[Documentation] Remove a property from nodeconnector
Remove property from nodeconnector
[Documentation] Remove a property from nodeconnector
- Remove property from nodeconnector MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth
- Nodeconnector property should not exist MD_SAL openflow:2 MD_SAL openflow:2:2 bandwidth ${1000}
+ Remove property from nodeconnector OF 00:00:00:00:00:00:00:02 OF 2 bandwidth
+ Nodeconnector property should not exist OF 00:00:00:00:00:00:00:02 OF 2 bandwidth ${1000}
*** Keywords ***
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
*** Keywords ***
Get node
[Arguments] ${node_id} ${node_type}
[Documentation] Get a specific node
- ${resp} Get ${ODL_CONTROLLER_SESSION} ${REST_CONTEXT}/default/nodes
+ ${resp} Get ${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}
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}
-Documentation Test suite for Statistics Manager
+Documentation Test suite for Statistics Manager
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library Collections
Variables ../../../variables/Variables.py
*** Variables ***
Variables ../../../variables/Variables.py
*** Variables ***
-${node1} "openflow:1"
-${node2} "openflow:2"
-${node3} "openflow:3"
+${node1} "00:00:00:00:00:00:00:01"
+${node2} "00:00:00:00:00:00:00:02"
+${node3} "00:00:00:00:00:00:00:03"
${key} portStatistics
${REST_CONTEXT} /controller/nb/v2/statistics
${key} portStatistics
${REST_CONTEXT} /controller/nb/v2/statistics
Variables ../../../variables/Variables.py
*** Variables ***
Variables ../../../variables/Variables.py
*** Variables ***
-${node1} "openflow:1"
-${node2} "openflow:2"
-${node3} "openflow:3"
+${node1} "00:00:00:00:00:00:00:01"
+${node2} "00:00:00:00:00:00:00:02"
+${node3} "00:00:00:00:00:00:00:03"
${name} test_userlink1
${key} userLinks
${REST_CONTEXT} /controller/nb/v2/topology
${name} test_userlink1
${key} userLinks
${REST_CONTEXT} /controller/nb/v2/topology
[Documentation] Add a userlink, list to validate the result.
[Tags] add
${body} Create Dictionary name ${name} status Success srcNodeConnector
[Documentation] Add a userlink, list to validate the result.
[Tags] add
${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... MD_SAL|openflow:2:1@MD_SAL|openflow:2 dstNodeConnector MD_SAL|openflow:3:1@MD_SAL|openflow:3
+ ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/userLink/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
[Documentation] Remove a userlink, list to validate the result.
[Tags] remove
${body} Create Dictionary name ${name} status Success srcNodeConnector
[Documentation] Remove a userlink, list to validate the result.
[Tags] remove
${body} Create Dictionary name ${name} status Success srcNodeConnector
- ... MD_SAL|openflow:2:1@MD_SAL|openflow:2 dstNodeConnector MD_SAL|openflow:3:1@MD_SAL|openflow:3
+ ... OF|1@OF|00:00:00:00:00:00:00:02 dstNodeConnector OF|1@OF|00:00:00:00:00:00:00:03
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/userLink/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/userLinks
*** Variables ***
${name} flow1
${key} flowConfig
*** Variables ***
${name} flow1
${key} flowConfig
+${node_id} 00:00:00:00:00:00:00:02
${REST_CONTEXT} /controller/nb/v2/flowprogrammer
${REST_CONTEXT_ST} /controller/nb/v2/statistics
${FLOW} "10.0.0.1"
${REST_CONTEXT} /controller/nb/v2/flowprogrammer
${REST_CONTEXT_ST} /controller/nb/v2/statistics
${FLOW} "10.0.0.1"
Add a flow
[Documentation] Add a flow, list to validate the result.
[Tags] add
Add a flow
[Documentation] Add a flow, list to validate the result.
[Tags] add
- ${node} Create Dictionary type MD_SAL id ${node_id}
- ${actions} Create List OUTPUT=openflow:2:1
+ ${node} Create Dictionary type OF id ${node_id}
+ ${actions} Create List OUTPUT=1
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
- ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/node/MD_SAL/${node_id}/staticFlow/${name} data=${body}
+ ${resp} Put session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
Check flow in flow stats
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
Check flow in flow stats
- [Documentation] Show flow stats and validate result
- [Tags] get
- Sleep 30
+ [Documentation] Show flow stats and validate result
+ [Tags] get
+ Sleep 30
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Remove a flow
[Documentation] Remove a flow, list to validate the result.
[Tags] remove
Remove a flow
[Documentation] Remove a flow, list to validate the result.
[Tags] remove
- ${node} Create Dictionary type MD_SAL id ${node_id}
- ${actions} Create List OUTPUT=openflow:2:1
+ ${node} Create Dictionary type OF id ${node_id}
+ ${actions} Create List OUTPUT=1
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
${body} Create Dictionary name ${name} installInHw true node
... ${node} priority 1 etherType 0x800 nwDst
... 10.0.0.1/32 actions ${actions}
- ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/node/MD_SAL/${node_id}/staticFlow/${name}
+ ${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/node/OF/${node_id}/staticFlow/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}
Should Be Equal As Strings ${resp.status_code} 200
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Add a host
[Documentation] Add a host, list to validate the result.
[Tags] add
Add a host
[Documentation] Add a host, list to validate the result.
[Tags] add
- ${body} Create Dictionary nodeType MD_SAL dataLayerAddress 5e:bf:79:84:10:a6 vlan
- ... 1 nodeId openflow:3 nodeConnectorId openflow:3:2 networkAddress
- ... 10.0.1.4 staticHost ${True} nodeConnectorType MD_SAL
+ ${body} Create Dictionary nodeType OF dataLayerAddress 5e:bf:79:84:10:a6 vlan
+ ... 1 nodeId 00:00:00:00:00:00:00:03 nodeConnectorId 2 networkAddress
+ ... 10.0.1.4 staticHost ${True} nodeConnectorType OF
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/address/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/active
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/address/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/active
Check flow in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Contain X Times ${resp.content} ${FLOW} 3
Remove a host
[Documentation] Remove a host, list to validate the result.
[Tags] remove
Log ${resp.content}
Should Contain X Times ${resp.content} ${FLOW} 3
Remove a host
[Documentation] Remove a host, list to validate the result.
[Tags] remove
- ${body} Create Dictionary nodeType MD_SAL dataLayerAddress 5e:bf:79:84:10:a6 vlan
- ... 1 nodeId openflow:3 nodeConnectorId openflow:3:2 networkAddress
- ... 10.0.1.4 staticHost ${True} nodeConnectorType MD_SAL
+ ${body} Create Dictionary nodeType OF dataLayerAddress 5e:bf:79:84:10:a6 vlan
+ ... 1 nodeId 00:00:00:00:00:00:00:03 nodeConnectorId 2 networkAddress
+ ... 10.0.1.4 staticHost ${True} nodeConnectorType OF
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/address/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/address/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
-Documentation Test suite for Static Route
+Documentation Test suite for Static Route
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library SSHLibrary
Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS}
Suite Teardown Delete All Sessions
Library SSHLibrary
${name} test_route1
${key} staticRoute
${REST_CONTEXT} /controller/nb/v2/staticroute
${name} test_route1
${key} staticRoute
${REST_CONTEXT} /controller/nb/v2/staticroute
-${REST_CONTEXT_ST} /controller/nb/v2/statistics
+${REST_CONTEXT_HT} /controller/nb/v2/hosttracker
*** Test Cases ***
Add a static route
*** Test Cases ***
Add a static route
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
# This works locally but NOT in OpenDaylight
#Check flow in flow stats
# [Documentation] Show flow stats and validate result
# This works locally but NOT in OpenDaylight
#Check flow in flow stats
# [Documentation] Show flow stats and validate result
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Not Contain Value ${content} ${body}
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Not Contain Value ${content} ${body}
Add a host
[Documentation] Add a host, list to validate the result.
[Tags] add
Add a host
[Documentation] Add a host, list to validate the result.
[Tags] add
- ${body} Create Dictionary nodeType MD_SAL dataLayerAddress 5e:bf:79:84:10:a6 vlan
- ... 1 nodeId openflow:3 nodeConnectorId openflow:3:2 networkAddress
- ... 10.0.1.4 staticHost ${True} nodeConnectorType MD_SAL
+ ${body} Create Dictionary nodeType OF dataLayerAddress 5e:bf:79:84:10:a6 vlan
+ ... 1 nodeId 00:00:00:00:00:00:00:03 nodeConnectorId 2 networkAddress
+ ... 10.0.1.4 staticHost ${True} nodeConnectorType OF
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/address/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/active
${resp} Put session ${REST_CONTEXT}/${CONTAINER}/address/${name} data=${body}
Should Be Equal As Strings ${resp.status_code} 201
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/active
Check flow in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Contain X Times ${resp.content} ${FLOW} 3
Remove a host
[Documentation] Remove a host, list to validate the result.
[Tags] remove
Log ${resp.content}
Should Contain X Times ${resp.content} ${FLOW} 3
Remove a host
[Documentation] Remove a host, list to validate the result.
[Tags] remove
- ${body} Create Dictionary nodeType MD_SAL dataLayerAddress 5e:bf:79:84:10:a6 vlan
- ... 1 nodeId openflow:3 nodeConnectorId openflow:3:2 networkAddress
- ... 10.0.1.4 staticHost ${True} nodeConnectorType MD_SAL
+ ${body} Create Dictionary nodeType OF dataLayerAddress 5e:bf:79:84:10:a6 vlan
+ ... 1 nodeId 00:00:00:00:00:00:00:03 nodeConnectorId 2 networkAddress
+ ... 10.0.1.4 staticHost ${True} nodeConnectorType OF
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/address/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive
${resp} Delete session ${REST_CONTEXT}/${CONTAINER}/address/${name}
Should Be Equal As Strings ${resp.status_code} 204
${resp} Get session ${REST_CONTEXT}/${CONTAINER}/hosts/inactive
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
Check flow is not in flow stats
[Documentation] Show flow stats and validate result
[Tags] get
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
${resp} Get session ${REST_CONTEXT_ST}/${CONTAINER}/flow
- Should Be Equal As Strings ${resp.status_code} 200
+ Should Be Equal As Strings ${resp.status_code} 200
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
Log ${resp.content}
Should Not Contain ${resp.content} ${FLOW}
${name} test_route1
${key} staticRoute
${REST_CONTEXT} /controller/nb/v2/staticroute
${name} test_route1
${key} staticRoute
${REST_CONTEXT} /controller/nb/v2/staticroute
-${REST_CONTEXT_ST} /controller/nb/v2/statistics
+${REST_CONTEXT_HT} /controller/nb/v2/hosttracker
*** Test Cases ***
Add a static route
*** Test Cases ***
Add a static route
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Contain Value ${content} ${body}
# This works locally but NOT in OpenDaylight
#Check flow in flow stats
# [Documentation] Show flow stats and validate result
# This works locally but NOT in OpenDaylight
#Check flow in flow stats
# [Documentation] Show flow stats and validate result
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Not Contain Value ${content} ${body}
${result} To JSON ${resp.content}
${content} Get From Dictionary ${result} ${key}
List Should Not Contain Value ${content} ${body}