Fix for VTN Manager CSIT test failures in VTN jenkins job
[integration/test.git] / csit / suites / vtn / VTN_Mgr_OF13_Li / 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 Resource          ../../../libraries/VtnMaKeywordsLi.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_vlan
29     [Documentation]    Add a vBridge vBridge1_vlan in vtn Tenant1
30     Add a vBridge    Tenant1    vBridge1_vlan    {}
31
32 Add a vlanmap for vBridge1_vlan
33     [Documentation]    Add a Vlanmap for vBridge1_vlan in vtn Tenant1
34     Add a vlanmap    Tenant1    vBridge1_vlan    ${vlanmap_bridge1}
35
36 Add a vBridge vBridge2_vlan
37     [Documentation]    Add a vBridge vBridge2_vlan in vtn Tenant1
38     Add a vBridge    Tenant1    vBridge2_vlan    {}
39
40 Add a vlanmap for vBridge2_vlan
41     [Documentation]    Add a Vlanmap for vBridge2_vlan in vtn Tenant1
42     Add a vlanmap    Tenant1    vBridge2_vlan    ${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 Verify data flow details for vlanmap vBridge1_vlan
53     [Documentation]    Verify the data flows for the specified tenant and vBridge1_vlan
54     Verify Data Flows    Tenant1    vBridge1_vlan
55
56 Get vlanflow h2 h4
57     [Documentation]    ping h2 to h4
58     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h4
59
60 Get vlanflow h2 h6
61     [Documentation]    ping h2 to h6
62     Wait Until Keyword Succeeds    20s    1s    Mininet Ping Should Succeed    h2    h6
63
64 Verify data flow details for vlanmap vBridge2_vlan
65     [Documentation]    Verify the data flows for the specified tenant and vBridge2_vlan
66     Wait Until Keyword Succeeds    20s    1s   Verify Data Flows    Tenant1    vBridge2_vlan
67
68 Get vlanflow h2 h5
69     [Documentation]    ping h2 to h5
70     Wait Until Keyword Succeeds    20s    1s   Mininet Ping Should Not Succeed    h2    h5
71
72 Delete a vtn Tenant1
73     [Documentation]    Delete a vtn Tenant1
74     Delete a vtn    Tenant1