Add support to deploy Coordinator from test suites
[integration/test.git] / test / csit / suites / vtn / VTN_C_OF10 / 020__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.txt
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     Wait Until Keyword Succeeds    30s    2s    Check Controller Status    odc_test    up
15
16 Add a Vtn Tenant1
17     [Documentation]    Create Vtn Tenant1
18     Wait Until Keyword Succeeds    10s    5s    Add a VTN    Tenant1    VTN_TEST
19
20 Create VBR in VTN Tenant1
21     [Documentation]    Create a VBR in Tenant1 as Vbridge1
22     Create VBR in VTN    Tenant1    Vbridge1    odc_test
23
24 Create VBRIF in VBRIDGE Vbridge1 Interface1
25     [Documentation]    Create an interface to Vbridge1
26     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
27
28 Create VBRIF in VBRIDGE Vbridge1 Interface2
29     [Documentation]    Create an interface to Vbridge1
30     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
31
32 Define Portmap for Interface1
33     [Documentation]    Map Interface1 to a logical port
34     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
35
36 Define Portmap for Interface2
37     [Documentation]    Map Interface2 to a logical port
38     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
39
40 Test Ping for Configuration1
41     [Documentation]    ping between hosts in mininet
42     Wait Until Keyword Succeeds    30s    10s    Test Ping    h1    h3
43
44 Delete a VTN Tenant1
45     [Documentation]    Delete Vtn Tenant1
46     Delete a VTN    Tenant1
47
48 Delete a Controller odc1
49     [Documentation]    Delete Controller odc1
50     Remove Controller    odc_test