Update Robot Framework format - step 16
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF13 / 010__vtn_vlanmap_dataflow.robot
1 *** Settings ***
2 Documentation       Test suite for VTN Manager Data Flows using OF13
3
4 Resource            ../../../libraries/VtnMaKeywords.robot
5
6 Suite Setup         Start SuiteVtnMaTest
7 Suite Teardown      Stop SuiteVtnMaTest
8
9
10 *** Test Cases ***
11 Start topology
12     [Documentation]    Add a vlan topology
13     Start vlan_topo    OF13
14
15 Check if switch1 detected
16     [Documentation]    Check if openflow:1 is detected
17     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
18
19 Check if switch2 detected
20     [Documentation]    Check if openflow:2 is detected
21     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
22
23 Check if switch3 detected
24     [Documentation]    Check if openflow:3 is detected
25     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
26
27 Add a vtn Tenant1
28     [Documentation]    Add a vtn Tenant1
29     Add a vtn    Tenant1
30
31 Add a vBridge vBridge1_vlan
32     [Documentation]    Add a vBridge vBridge1_vlan in vtn Tenant1
33     Add a vBridge    Tenant1    vBridge1_vlan
34
35 Add a vlanmap for vBridge1_vlan
36     [Documentation]    Add a Vlanmap for vBridge1_vlan in vtn Tenant1
37     Add a vlanmap    Tenant1    vBridge1_vlan    ${vlanmap_bridge1}
38
39 Add a vBridge vBridge2_vlan
40     [Documentation]    Add a vBridge vBridge2_vlan in vtn Tenant1
41     Add a vBridge    Tenant1    vBridge2_vlan
42
43 Add a vlanmap for vBridge2_vlan
44     [Documentation]    Add a Vlanmap for vBridge2_vlan in vtn Tenant1
45     Add a vlanmap    Tenant1    vBridge2_vlan    ${vlanmap_bridge2}
46
47 Get vlanflow h1 h3
48     [Documentation]    ping h1 to h3
49     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h1    h3
50
51 Get vlanflow h1 h5
52     [Documentation]    ping h1 to h5
53     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h1    h5
54
55 Verify data flow details for vlanmap vBridge1_vlan
56     [Documentation]    Verify the data flows for the specified tenant and vBridge1_vlan
57     Verify Data Flows    Tenant1    vBridge1_vlan
58
59 Get vlanflow h2 h4
60     [Documentation]    ping h2 to h4
61     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h4
62
63 Get vlanflow h2 h6
64     [Documentation]    ping h2 to h6
65     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h6
66
67 Verify data flow details for vlanmap vBridge2_vlan
68     [Documentation]    Verify the data flows for the specified tenant and vBridge2_vlan
69     Verify Data Flows    Tenant1    vBridge2_vlan
70
71 Get vlanflow h2 h5
72     [Documentation]    ping h2 to h5
73     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Not Succeed    h2    h5
74
75 Delete a vtn Tenant1
76     [Documentation]    Delete a vtn Tenant1
77     Delete a vtn    Tenant1