2 Documentation Test suite for VTN Manager using OF10
4 Resource ../../../libraries/VtnMaKeywords.robot
6 Suite Setup Start SuiteVtnMaTest
7 Suite Teardown Stop SuiteVtnMaTest
12 ... "vtn-flow-match":[{"vtn-inet-match":{"source-network":"10.0.0.1/32","destination-network":"10.0.0.5/32"},"index":"1"}]
14 ... "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order":"1","vtn-set-vlan-pcp-action":{"vlan-pcp":"6"}}],"index":"1"}]
19 [Documentation] Add a vlan topology
22 Check if switch1 detected
23 [Documentation] Check if openflow:1 is detected
24 BuiltIn.Wait_Until_Keyword_Succeeds 12 3 Fetch vtn switch inventory openflow:1
26 Check if switch2 detected
27 [Documentation] Check if openflow:2 is detected
28 BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:2
30 Check if switch3 detected
31 [Documentation] Check if openflow:3 is detected
32 BuiltIn.Wait_Until_Keyword_Succeeds 3 1 Fetch vtn switch inventory openflow:3
35 [Documentation] Add a topology wait to wait for a completion of inter-switch link
36 Add a Topology wait 2000
39 [Documentation] Add a vtn Tenant1
42 Add a vBridge vBridge1
43 [Documentation] Add a vBridge vBridge1 in vtn Tenant1
44 Add a vBridge Tenant1 vBridge1
47 [Documentation] Add a interface if1 into vBridge vBridge1
48 Add a interface Tenant1 vBridge1 if1
51 [Documentation] Add a interface if2 into vBridge vBridge1
52 Add a interface Tenant1 vBridge1 if2
54 Add a portmap with vlan-id for interface if1
55 [Documentation] Create a vlan portmap on Interface if1 of vBridge1
56 Add a vlan portmap Tenant1 vBridge1 if1 200 openflow:2 s2-eth2
58 Add a portmap with vlan-id for interface if2
59 [Documentation] Create a vlan portmap on Interface if2 of vBridge1
60 Add a vlan portmap Tenant1 vBridge1 if2 200 openflow:3 s3-eth3
63 [Documentation] Create a flowcondition cond_1 using restconfig api
64 Add a flowcondition cond_1 ${flowconditiondata}
66 Add a vbrif flowfilter with vlanpcp
67 [Documentation] Create a flowfilter with vlanpcp and Verify ping
68 Add a vbrif flowfilter Tenant1 vBridge1 if1 ${flowfiltervlanpcp}
69 Wait_Until_Keyword_Succeeds 20s 1s Mininet Ping Should Succeed h1 h5
71 Verify vlanpcp of vbrif flowfilter
72 [Documentation] Verify actions in Flow Enties for vlanpcp
73 Wait_Until_Keyword_Succeeds
76 ... Verify Flow Entries for Flowfilter
77 ... ${FF_DUMPFLOWS_OF10}
80 Remove vbrif Flowfilter index
81 [Documentation] Remove a index of vbrif flowfilter
82 Remove a vbrif flowfilter Tenant1 vBridge1 if1 ${filter_index}
84 Delete a flowcondition
85 [Documentation] Delete a flowcondition
86 Remove flowcondition cond_1
89 [Documentation] Delete a vtn Tenant1