79eba68fa56224e5d71a364dce019aa204f2e38f
[integration/test.git] / csit / suites / vtn / VTN_C_OF13 / 070__vtn_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     [Tags]    exclude
11     Add a Controller    odc_test    ${CONTROLLER}
12
13 Verify the Controller Status is waiting_audit
14     [Documentation]    Check Controller status
15     [Tags]    exclude
16     Wait Until Keyword Succeeds    12s    2s    Check Controller Status    odc_test    waiting_audit
17
18 Audit a controller
19     [Documentation]    Trigger update audit
20     [Tags]    exclude
21     Audit Controller    odc_test
22
23 Add a Vtn Tenant1
24     [Documentation]    Create Vtn Tenant1
25     [Tags]    exclude
26     Add a VTN    Tenant1    VTN_TEST
27
28 Create VBR in VTN Tenant1
29     [Documentation]    Create a VBR in Tenant1 as Vbridge1
30     [Tags]    exclude
31     Create VBR in VTN    Tenant1    Vbridge1    odc_test
32
33 Create VBRIF in VBRIDGE Vbridge1 Interface1
34     [Documentation]    Create an interface to Vbridge1
35     [Tags]    exclude
36     Create VBRIF in VBR    Tenant1    Vbridge1    Interface1    Interface1    201
37
38 Create VBRIF in VBRIDGE Vbridge1 Interface2
39     [Documentation]    Create an interface to Vbridge1
40     [Tags]    exclude
41     Create VBRIF in VBR    Tenant1    Vbridge1    Interface2    Interface2    201
42
43 Define Portmap for Interface1
44     [Documentation]    Map Interface1 to a logical port
45     [Tags]    exclude
46     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface1    PP-OF:openflow:3-s3-eth1
47
48 Define Portmap for Interface2
49     [Documentation]    Map Interface2 to a logical port
50     [Tags]    exclude
51     Define Portmap for VBRIF    Tenant1    Vbridge1    Interface2    PP-OF:openflow:2-s2-eth1
52
53 Add a Flowlist Flowlist1
54     [Documentation]    Create Flowlist Tenant1
55     [Tags]    exclude
56     Add a FLOWLIST    Flowlist1    IP
57
58 Create Flowlistentry_any in Flowlist1
59     [Documentation]    Create an Flowlistentry_any to Flowlist1
60     [Tags]    exclude
61     Create FLOWLISTENTRY_ANY in FLOWLIST    Flowlist1
62
63 Create VTN in Flowfilter1
64     [Documentation]    Create Vtn to Flowfilter
65     [Tags]    exclude
66     Create FLOWFILTER in VTN    Tenant1    in
67
68 Create FlowfilterEntry in VTNFlowfilter
69     [Documentation]    Create Vtn FlowfilterEntry
70     [Tags]    exclude
71     Create FLOWFILTERENTRY PASS in VTNFLOWFILTER    Tenant1    pass
72
73 Test Ping for Configuration
74     [Documentation]    ping between hosts in mininet
75     [Tags]    exclude
76     Wait Until Keyword Succeeds    10s    2s    Test Ping    h1    h3
77
78 Delete a VTN Tenant1
79     [Documentation]    Delete Vtn Tenant1
80     [Tags]    exclude
81     Delete a VTN    Tenant1
82
83 Delete a FLOWLIST Flowlist1
84     [Documentation]    Delete Flowlist
85     [Tags]    exclude
86     Delete a FLOWLIST    Flowlist1
87
88 Delete a Controller odc1
89     [Documentation]    Delete Controller odc1
90     [Tags]    exclude
91     Remove Controller    odc_test