Step 2: Move test folder to root
[integration/test.git] / csit / suites / vtn / VTN_C_OF13 / 040__vtn_vbrif_audit.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 waiting_audit
13     [Documentation]    Check Controller status
14     Wait Until Keyword Succeeds    12s    2s   Check Controller Status    odc_test   waiting_audit
15
16 Audit a controller
17     [Documentation]    Trigger update audit
18     Audit Controller    odc_test
19
20 Add a Vtn Tenant1
21     [Documentation]    Create Vtn Tenant1
22     Add a VTN    Tenant1    VTN_TEST
23
24 Create VBR in VTN Tenant1
25     [Documentation]    Create a VBR in Tenant1 as Vbridge1
26     Create VBR in VTN    Tenant1    Vbridge1    odc_test
27
28 Update controller ip invalid
29     [Documentation]    Update Controller ip to invalid
30     [Tags]    exclude
31     Update Controller    odc_test    10.0.0.1    invalid_IP
32
33 Verify the Controller State is down
34     [Documentation]    Check Controller status
35     [Tags]    exclude
36     Wait Until Keyword Succeeds    12s    2s   Check Controller Status    odc_test    down
37
38 Create VBRIF in VBRIDGE Vbridge1 Interface1
39     [Documentation]    Create an interface to Vbridge1
40     [Tags]    exclude
41     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    202
42
43 Create VBRIF in VBRIDGE Vbridge1 Interface2
44     [Documentation]    Create an interface to Vbridge1
45     [Tags]    exclude
46     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    202
47
48 Update controller ip valid
49     [Documentation]    Update Controller ip to valid
50     [Tags]    exclude
51     Update Controller    odc_test    ${CONTROLLER}    valid_IP
52
53 Verify the Controller State is in waiting_audit
54     [Documentation]    Check Controller status
55     [Tags]    exclude
56     Wait Until Keyword Succeeds    12s    2s   Check Controller Status    odc_test    waiting_audit
57
58 Audit a controller manually
59     [Documentation]    Trigger update audit
60     [Tags]    exclude
61     Audit Controller    odc_test
62
63 Define Portmap for Interface1
64     [Documentation]    Map Interface1 to a logical port
65     [Tags]    exclude
66     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1     PP-OF:openflow:2-s2-eth1
67
68 Define Portmap for Interface2
69     [Documentation]    Map Interface2 to a logical port
70     [Tags]    exclude
71     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth2
72
73 Test Ping for Configuration1
74     [Documentation]    ping between hosts in mininet
75     [Tags]    exclude
76     Wait Until Keyword Succeeds    10s    2s    Test Ping    h1    h2
77
78 Delete a VTN Tenant1
79     [Documentation]    Delete Vtn Tenant1
80     Delete a VTN    Tenant1
81
82 Delete a Controller odc1
83     [Documentation]    Delete Controller odc1
84     Remove Controller    odc_test