Variables ../../../variables/Variables.py
Library RequestsLibrary
Library ../../../libraries/Common.py
+Resource ../../../variables/openflowplugin/Variables.robot
*** Variables ***
${switch_idx} 1
Add Flow 1 To Controller1
Init Flow Variables 1 1 1
Log ${data}
- ${resp}= Put Request session1 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} data=${data}
+ ${resp}= Put Request session1 ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/table=${table_id}/flow=${flow_id} data=${data}
Log ${resp.content}
- ${msg}= Set Variable Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
+ ${msg}= Set Variable Adding flow for ${RFC8040_NODES_API}/node=openflow%3A${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}
Add Flow 2 To Controller2
Init Flow Variables 1 2 2
Log ${data}
- ${resp}= Put Request session2 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} data=${data}
+ ${resp}= Put Request session2 ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/table=${table_id}/flow=${flow_id} data=${data}
Log ${resp.content}
- ${msg}= Set Variable Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
+ ${msg}= Set Variable Adding flow for ${RFC8040_NODES_API}/node=openflow%3A${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}
Add Flow 3 To Controller3
Init Flow Variables 1 3 3
Log ${data}
- ${resp}= Put Request session3 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} data=${data}
+ ${resp}= Put Request session3 ${RFC8040_NODES_API}/node=openflow%3A${switch_idx}/table=${table_id}/flow=${flow_id} data=${data}
Log ${resp.content}
- ${msg}= Set Variable Adding flow for ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id} failed, http response ${resp.status_code} received.
+ ${msg}= Set Variable Adding flow for ${RFC8040_NODES_API}/node=openflow%3A${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}
Show Switch Content After Add
Check Flow 1 Configured On Controller1
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 1 Operational On Controller1
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 1 Configured On Controller2
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 1 Operational On Controller2
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 1 Configured On Controller3
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 1 Operational On Controller3
Init Flow Variables 1 1 1
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 2 Configured On Controller1
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 2 Operational On Controller1
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 2 Configured On Controller2
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 2 Operational On Controller2
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 2 Configured On Controller3
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 2 Operational On Controller3
Init Flow Variables 1 2 2
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 3 Configured On Controller1
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 3 Operational On Controller1
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 3 Configured On Controller2
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 3 Operational On Controller2
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Check Flow 3 Configured On Controller3
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Configured ${data} ${resp.content}
Check Flow 3 Operational On Controller3
Init Flow Variables 1 3 3
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Delete Flow 1 On Controller1
Init Flow Variables 1 1 1
- ${resp}= Delete Request session1 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+ ${resp}= Delete Request session1 ${RFC8040_NODES_API}/node=openflow%3A${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.
+ ${msg}= Set Variable Delete flow for ${RFC8040_NODES_API}/node=openflow%3A${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 2 On Controller2
Init Flow Variables 1 2 2
- ${resp}= Delete Request session2 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+ ${resp}= Delete Request session2 ${RFC8040_NODES_API}/node=openflow%3A${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.
+ ${msg}= Set Variable Delete flow for ${RFC8040_NODES_API}/node=openflow%3A${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 3 On Controller3
Init Flow Variables 1 3 3
- ${resp}= Delete Request session3 ${CONFIG_NODES_API}/node/openflow:${switch_idx}/table/${table_id}/flow/${flow_id}
+ ${resp}= Delete Request session3 ${RFC8040_NODES_API}/node=openflow%3A${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.
+ ${msg}= Set Variable Delete flow for ${RFC8040_NODES_API}/node=openflow%3A${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}
Show Switch Content After Delete
Read Until mininet>
Check Flow 1 Not Configured On Controller1
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 1 Not Operational On Controller1
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 1 Not Configured On Controller2
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 1 Not Operational On Controller2
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 1 Not Configured On Controller3
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=1?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 1 Not Operational On Controller3
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 2 Not Configured On Controller1
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 2 Not Operational On Controller1
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 2 Not Configured On Controller2
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 2 Not Operational On Controller2
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 2 Not Configured On Controller3
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/2
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=2?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 2 Not Operational On Controller3
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 3 Not Configured On Controller1
- ${resp}= Get Controller Response session1 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 3 Not Operational On Controller1
- ${resp}= Get Controller Response session1 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session1 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 3 Not Configured On Controller2
- ${resp}= Get Controller Response session2 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 3 Not Operational On Controller2
- ${resp}= Get Controller Response session2 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session2 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}
Should Be Equal ${False} ${pres} msg=${msg}
Check Flow 3 Not Configured On Controller3
- ${resp}= Get Controller Response session3 ${CONFIG_NODES_API}/node/openflow:1/table/1/flow/3
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1/flow=3?content=config
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 404
Check Flow 3 Not Operational On Controller3
- ${resp}= Get Controller Response session3 ${OPERATIONAL_NODES_API}/node/openflow:1/table/1
+ ${resp}= Get Controller Response session3 ${RFC8040_NODES_API}/node=openflow%3A1/table=1?content=nonconfig
Log ${resp.content}
Should Be Equal As Strings ${resp.status_code} 200
${pres} ${msg}= Is Flow Operational2 ${data} ${resp.content}