2 Documentation Test suite for VTN Manager Data Flow using OF10
3 Suite Setup Start SuiteVtnMaTest
4 Suite Teardown Stop SuiteVtnMaTest
5 Resource ../../../libraries/VtnMaKeywords.robot
8 Check if switch1 detected
9 [Documentation] Check if openflow:1 is detected
10 BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
12 Check if switch2 detected
13 [Documentation] Check if openflow:2 is detected
14 BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
16 Check if switch3 detected
17 [Documentation] Check if openflow:3 is detected
18 BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
21 [Documentation] Add a vtn Tenant1
24 Add a vBridge vBridge1
25 [Documentation] Add a vBridge vBridge1 in vtn Tenant1
26 Add a vBridge Tenant1 vBridge1
29 [Documentation] Add a interface if1 into vBridge vBridge1
30 Add a interface Tenant1 vBridge1 if1
33 [Documentation] Add a interface if2 into vBridge vBridge1
34 Add a interface Tenant1 vBridge1 if2
36 Add a portmap for interface if1
37 [Documentation] Create a portmap on Interface if1 of vBridge1
38 Add a portmap Tenant1 vBridge1 if1 openflow:2 s2-eth1
40 Add a portmap for interface if2
41 [Documentation] Create a portmap on Interface if2 of vBridge1
42 Add a portmap Tenant1 vBridge1 if2 openflow:3 s3-eth1
45 [Documentation] Ping h1 to h3, verify no packet loss
46 Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h1 h3
48 Verify data flow details For vBridge1
49 [Documentation] Verify the data flows for the specified tenant and bridge
50 Wait Until Keyword Succeeds 20s 1s Verify Data Flows Tenant1 vBridge1
52 Add a vBridge vBridge2
53 [Documentation] Add a vBridge vBridge2 in vtn Tenant1
54 Add a vBridge Tenant1 vBridge2
57 [Documentation] Add a interface if3 into vBrdige vBridge1
58 Add a interface Tenant1 vBridge2 if3
61 [Documentation] Add a interface if4 into vBrdige vBridge1
62 Add a interface Tenant1 vBridge2 if4
64 Add a portmap for interface if3
65 [Documentation] Create a portmap on Interface if3 of vBridge1
66 Add a portmap Tenant1 vBridge2 if3 openflow:2 s2-eth2
68 Add a portmap for interface if4
69 [Documentation] Create a portmap on Interface if4 of vBridge1
70 Add a portmap Tenant1 vBridge2 if4 openflow:3 s3-eth2
73 [Documentation] Ping h2 to h4, verify no packet loss
74 Wait Until Keyword Succeeds 20s 1s Mininet Ping Should Succeed h2 h4
76 Verify data flow details for vBridge2
77 [Documentation] Verify the data flows for the specified tenant and bridge
78 Verify Data Flows Tenant1 vBridge2
81 [Documentation] Checking Flows on switch
82 Wait Until Keyword Succeeds 20s 1s Verify FlowMacAddress h2 h4 OF10
84 Remove Portmap for If1
85 [Documentation] Remove portmap for the interface If1
86 Remove a portmap Tenant1 vBridge1 if1
88 Verify RemovedFlowMacAddress
89 [Documentation] flows will be deleted after the port map is removed
90 Verify RemovedFlowMacAddress h1 h3 OF10
93 [Documentation] Delete a vtn Tenant1