c0196a7ac7c46d60425956451e6a3d0ad4679818
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF10 / 010__vtn_vlanmap.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Manager using OF10
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    OF10
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
30     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
31     Add a vBridge    Tenant1    vBridge1    {}
32
33 Add a vlanmap for bridge1
34     [Documentation]    Add a Vlanmap for bridge1 in vtn Tenant1
35     Add a vlanmap    Tenant1    vBridge1    ${vlanmap_bridge1}
36
37 Add a vBridge vBridge2
38     [Documentation]    Add a vBridge vBridge2 in vtn Tenant1
39     Add a vBridge    Tenant1    vBridge2    {}
40
41 Add a vlanmap for bridge2
42     [Documentation]    Add a Vlanmap for bridge1 in vtn Tenant1
43     Add a vlanmap    Tenant1    vBridge2    ${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 Get vlanflow h2 h4
54     [Documentation]    ping h2 to h4
55     Wait Until Keyword Succeeds    10s    2s    Mininet Ping Should Succeed    h2    h4
56
57 Get vlanflow h2 h6
58     [Documentation]    ping h2 to h6
59     Wait Until Keyword Succeeds    10s    2s    Mininet Ping Should Succeed    h2    h6
60
61 Get vlanflow h2 h5
62     [Documentation]    ping h2 to h5
63     Mininet Ping Should Not Succeed    h2    h5
64
65 Delete a vtn Tenant1
66     [Documentation]    Delete a vtn Tenant1
67     Delete a vtn    Tenant1