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