Step 1: Move vm scripts to the right place
[integration/test.git] / test / csit / suites / vtn / VTN_C_OF10 / 020__vtn_vbrif_portmap.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     # Ping starts after 12sec of completing audit and controller status become "UP"
15     Wait Until Keyword Succeeds    12s    2s   Check Controller Status    odc_test   waiting_audit
16
17 Audit a controller
18     [Documentation]    Trigger update audit
19     Audit Controller    odc_test
20
21 Add a Vtn Tenant1
22     [Documentation]    Create Vtn Tenant1
23     Add a VTN    Tenant1    VTN_TEST
24
25 Create VBR in VTN Tenant1
26     [Documentation]    Create a VBR in Tenant1 as Vbridge1
27     Create VBR in VTN    Tenant1    Vbridge1    odc_test
28
29 Create VBRIF in VBRIDGE Vbridge1 Interface1
30     [Documentation]    Create an interface to Vbridge1
31     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
32
33 Create VBRIF in VBRIDGE Vbridge1 Interface2
34     [Documentation]    Create an interface to Vbridge1
35     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
36
37 Define Portmap for Interface1
38     [Documentation]    Map Interface1 to a logical port
39     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
40
41 Define Portmap for Interface2
42     [Documentation]    Map Interface2 to a logical port
43     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
44
45 Test Ping for Configuration1
46     [Documentation]    ping between hosts in mininet
47     Wait Until Keyword Succeeds   10s    2s    Test Ping    h1    h3
48
49 Delete a VTN Tenant1
50     [Documentation]    Delete Vtn Tenant1
51     Delete a VTN    Tenant1
52
53 Delete a Controller odc1
54     [Documentation]    Delete Controller odc1
55     Remove Controller    odc_test