ffcbb7f229504ad4ac357302c3b6bafb318cce03
[integration/test.git] / test / csit / suites / vtn / VTN_C_OF13 / 040__vtn_coordinator.robot
1 *** Settings ***
2 Documentation     Test suite for VTN Coordinator
3 Suite Setup       Start SuiteVtnCoTest
4 Suite Teardown    Stop SuiteVtnCoTest
5 Resource          ../../../libraries/VtnCoKeywords.robot
6
7 *** Test Cases ***
8 Add a ODL Controller
9     [Documentation]    Add a Controller
10     Add a Controller    odc_test    ${CONTROLLER}
11
12 Verify the Controller Status is up
13     [Documentation]    Check Controller status
14     [Tags]    exclude
15     Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
16
17 Add a Vtn Tenant1
18     [Documentation]    Create Vtn Tenant1
19     [Tags]    exclude
20     Add a VTN    Tenant1    VTN_TEST
21
22 Create VBR in VTN Tenant1
23     [Documentation]    Create a VBR in Tenant1 as Vbridge1
24     [Tags]    exclude
25     Create VBR in VTN    Tenant1    Vbridge1    odc_test
26
27 Update controller ip invalid
28     [Documentation]    Update Controller ip to invalid
29     [Tags]    exclude
30     Update Controller    odc_test    10.0.0.1    invalid_IP
31
32 Verify the Controller State is down
33     [Documentation]    Check Controller status
34     [Tags]    exclude
35     Wait Until Keyword Succeeds    40s    5s    Check Controller Status    odc_test    down
36
37 Create VBRIF in VBRIDGE Vbridge1 Interface1
38     [Documentation]    Create an interface to Vbridge1
39     [Tags]    exclude
40     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    202
41
42 Create VBRIF in VBRIDGE Vbridge1 Interface2
43     [Documentation]    Create an interface to Vbridge1
44     [Tags]    exclude
45     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    202
46
47 Update controller ip valid
48     [Documentation]    Update Controller ip to valid
49     [Tags]    exclude
50     Update Controller    odc_test    ${CONTROLLER}    valid_IP
51
52 Verify the Controller State is up
53     [Documentation]    Check Controller status
54     [Tags]    exclude
55     Wait Until Keyword Succeeds    32s    2s    Check Controller Status    odc_test    up
56
57 Define Portmap for Interface1
58     [Documentation]    Map Interface1 to a logical port
59     [Tags]    exclude
60     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1     PP-OF:openflow:2-s2-eth1
61
62 Define Portmap for Interface2
63     [Documentation]    Map Interface2 to a logical port
64     [Tags]    exclude
65     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth2
66
67 Test Ping for Configuration1
68     [Documentation]    ping between hosts in mininet
69     [Tags]    exclude
70     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h2
71
72 Delete a VTN Tenant1
73     [Documentation]    Delete Vtn Tenant1
74     [Tags]    exclude
75     Delete a VTN    Tenant1
76
77 Delete a Controller odc1
78     [Documentation]    Delete Controller odc1
79     Remove Controller    odc_test