Verify Data Flows
[Arguments] ${vtn_name} ${vBridge_name}
[Documentation] Verify the reason and physical data flows for the specified vtn and vbridge
- ${resp}= RequestsLibrary.Get session ${REST_CONTEXT_VTNS}/${vtn_name}/flows/detail
+ ${resp}= RequestsLibrary.Get session ${REST_CONTEXT_VTNS}/${vtn_name}/flows/detail
Run Keyword If '${vBridge_name}' == 'vBridge1' DataFlowsForBridge ${resp} @{BRIDGE1_DATAFLOW}
... ELSE IF '${vBridge_name}' == 'vBridge2' DataFlowsForBridge ${resp} @{BRIDGE2_DATAFLOW}
... ELSE IF '${vBridge_name}' == 'vBridge1_vlan' DataFlowsForBridge ${resp} @{VLANMAP_BRIDGE1_DATAFLOW}
... ELSE DataFlowsForBridge ${resp} @{VLANMAP_BRIDGE2_DATAFLOW}
DataFlowsForBridge
+ [Arguments] ${resp} @{BRIDGE_DATAFLOW}
[Documentation] Verify whether the required attributes exists.
- [Arguments] ${resp} @{BRIDGE_DATAFLOW}
: FOR ${dataflowElement} IN @{BRIDGE_DATAFLOW}
\ should Contain ${resp.content} ${dataflowElement}
*** Test Cases ***
Check if switch1 detected
[Documentation] Check if openflow:1 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
+ BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
Check if switch2 detected
[Documentation] Check if openflow:2 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
+ BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
Check if switch3 detected
[Documentation] Check if openflow:3 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
+ BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
Add a vtn Tenant1
[Documentation] Add a vtn Tenant1
Ping h1 to h3
[Documentation] Ping h1 to h3, verify no packet loss
- Mininet Ping Should Succeed h1 h3
+ Mininet Ping Should Succeed h1 h3
Verify data flow details For vBridge1
[Documentation] Verify the data flows for the specified tenant and bridge
Ping h2 to h4
[Documentation] Ping h2 to h4, verify no packet loss
- Mininet Ping Should Succeed h2 h4
+ Mininet Ping Should Succeed h2 h4
Verify data flow details for vBridge2
[Documentation] Verify the data flows for the specified tenant and bridge
*** Test Cases ***
Start topology
[Documentation] Add a vlan topology
- Start vlan_topo
+ Start vlan_topo
Check if switch1 detected
[Documentation] Check if openflow:1 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
+ BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
Check if switch2 detected
[Documentation] Check if openflow:2 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
+ BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
Check if switch3 detected
[Documentation] Check if openflow:3 is detected
- BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
+ BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
Add a vtn Tenant1
[Documentation] Add a vtn Tenant1
Verify Data Flows Tenant1 vBridge2_vlan
Get vlanflow h2 h5
- [Documentation] ping h2 to h5
+ [Documentation] ping h2 to h5
Mininet Ping Should Not Succeed h2 h5
Delete a vtn Tenant1