Modify vlanmap and dataflow robot files for VTN Manager RESTCONF
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF13 / 010__vtn_vlanmap.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Manager using OF13
3 Suite Setup       Start SuiteVtnMaTest
4 Suite Teardown    Stop SuiteVtnMaTest
5 Resource          ../../../libraries/VtnMaKeywords.robot
6
7 *** Test Cases ***
8 Start topology
9     [Documentation]    Add a vlan topology
10     Start vlan_topo    OF13
11
12 Check if switch1 detected
13     [Documentation]    Check if openflow:1 is detected
14     BuiltIn.Wait_Until_Keyword_Succeeds    12    3    Fetch vtn switch inventory    openflow:1
15
16 Check if switch2 detected
17     [Documentation]    Check if openflow:2 is detected
18     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:2
19
20 Check if switch3 detected
21     [Documentation]    Check if openflow:3 is detected
22     BuiltIn.Wait_Until_Keyword_Succeeds    3    1    Fetch vtn switch inventory    openflow:3
23
24 Add a vtn Tenant1
25     [Documentation]    Add a vtn Tenant1
26     Add a vtn    Tenant1
27
28 Add a vBridge vBridge1
29     [Documentation]    Add a vBridge vBridge1 in vtn Tenant1
30     Add a vBridge    Tenant1    vBridge1
31
32 Add a vlanmap for bridge1
33     [Documentation]    Add a Vlanmap for bridge1 in vtn Tenant1
34     Add a vlanmap    Tenant1    vBridge1    ${vlanmap_bridge1}
35
36 Add a vBridge vBridge2
37     [Documentation]    Add a vBridge vBridge2 in vtn Tenant1
38     Add a vBridge    Tenant1    vBridge2
39
40 Add a vlanmap for bridge2
41     [Documentation]    Add a Vlanmap for bridge1 in vtn Tenant1
42     Add a vlanmap    Tenant1    vBridge2    ${vlanmap_bridge2}
43
44 Get vlanflow h1 h3
45     [Documentation]    ping h1 to h3
46     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h1    h3
47
48 Get vlanflow h1 h5
49     [Documentation]    ping h1 to h5
50     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h1    h5
51
52 Get vlanflow h2 h4
53     [Documentation]    ping h2 to h4
54     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h4
55
56 Get vlanflow h2 h6
57     [Documentation]    ping h2 to h6
58     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h6
59
60 Get vlanflow h2 h5
61     [Documentation]    ping h2 to h5
62     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Not Succeed    h2    h5
63
64 Delete a vtn Tenant1
65     [Documentation]    Delete a vtn Tenant1
66     Delete a vtn    Tenant1