Update Robot Framework format - step 16
[integration/test.git] / csit / suites / vtn / VTN_C_OF10 / 060__vtn_vbrif_flowfilter.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 Add a Flowlist Flowlist1
49     [Documentation]    Create Flowlist Tenant1
50     Add a FLOWLIST    Flowlist1    IP
51
52 Create Flowlistentry in Flowlist1
53     [Documentation]    Create an Flowlistentry to Flowlist1
54     Create FLOWLISTENTRY    Flowlist1
55
56 Create Flowfilter1 in VBRIF
57     [Documentation]    Create an Vbrif to Flowfilter
58     Create VBRIF in FLOWFILTER    Tenant1    Vbridge1    Interface1    in
59
60 Create Flowfilterentry with Drop Action in VBRIF
61     [Documentation]    Create an Flowfilter Drop Action
62     Create FLOWFILTERENTRY DROP In VBRIFFLOWFILTER    Tenant1    Vbridge1    Interface1    drop
63
64 Create Flowfilterentry With Pass Action in VBRIF
65     [Documentation]    Update an Flowfilter Pass Action
66     Create FLOWFILTERENTRY PASS In VBRIFFLOWFILTER    Tenant1    Vbridge1    Interface1    pass    233
67
68 Test Ping for Configuration
69     [Documentation]    ping between hosts in mininet
70     Wait Until Keyword Succeeds    20s    1s    Test Ping    h1    h3
71
72 Delete a VTN Tenant1
73     [Documentation]    Delete Vtn Tenant1
74     Delete a VTN    Tenant1
75
76 Delete a FLOWLIST Flowlist1
77     [Documentation]    Delete Flowlist
78     Delete a FLOWLIST    Flowlist1
79
80 Delete a Controller odc1
81     [Documentation]    Delete Controller odc1
82     Remove Controller    odc_test