Migrate Get Requests invocations(libraries)
[integration/test.git] / csit / suites / vtn / VTN_C_OF10 / 020__vtn_vbrif_portmap.robot
1 *** Settings ***
2 Documentation       Test suite for VTN Coordinator
3
4 Resource            ../../../libraries/VtnCoKeywords.robot
5
6 Suite Setup         Start SuiteVtnCoTest
7 Suite Teardown      Stop SuiteVtnCoTest
8
9
10 *** Test Cases ***
11 Add a ODL Controller
12     [Documentation]    Add a Controller
13     Add a Controller    odc_test    ${ODL_SYSTEM_IP}
14
15 Verify the Controller Status is waiting_audit
16     [Documentation]    Check Controller status
17     # Ping starts after 12sec of completing audit and controller status become "UP"
18     Wait Until Keyword Succeeds    12s    2s    Check Controller Status    odc_test    waiting_audit
19
20 Audit a controller
21     [Documentation]    Trigger update audit
22     Audit Controller    odc_test
23
24 Add a Vtn Tenant1
25     [Documentation]    Create Vtn Tenant1
26     Add a VTN    Tenant1    VTN_TEST
27
28 Create VBR in VTN Tenant1
29     [Documentation]    Create a VBR in Tenant1 as Vbridge1
30     Create VBR in VTN    Tenant1    Vbridge1    odc_test
31
32 Create VBRIF in VBRIDGE Vbridge1 Interface1
33     [Documentation]    Create an interface to Vbridge1
34     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
35
36 Create VBRIF in VBRIDGE Vbridge1 Interface2
37     [Documentation]    Create an interface to Vbridge1
38     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
39
40 Define Portmap for Interface1
41     [Documentation]    Map Interface1 to a logical port
42     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
43
44 Define Portmap for Interface2
45     [Documentation]    Map Interface2 to a logical port
46     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
47
48 Test Ping for Configuration1
49     [Documentation]    ping between hosts in mininet
50     Wait Until Keyword Succeeds    20s    1s    Test Ping    h1    h3
51
52 Delete a VTN Tenant1
53     [Documentation]    Delete Vtn Tenant1
54     Delete a VTN    Tenant1
55
56 Delete a Controller odc1
57     [Documentation]    Delete Controller odc1
58     Remove Controller    odc_test