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