Add connection manager to Openstack_Neutron test suite.
[integration/test.git] / test / csit / suites / ovsdb / Openstack_Neutron / 001__connection_manager.robot
1 *** Settings ***
2 Documentation     Test suite connecting ODL to Mininet
3 Resource          ../../../libraries/Utils.txt
4
5 *** Variables ***
6 ${FLOWS_TABLE_20}    actions=goto_table:20
7 ${FLOW_CONTROLLER}    actions=CONTROLLER:65535
8 ${FLOWS_TABLE_30}    actions=goto_table:30
9 ${FLOWS_TABLE_40}    actions=goto_table:40
10 ${FLOWS_TABLE_50}    actions=goto_table:50
11 ${FLOWS_TABLE_60}    actions=goto_table:60
12 ${FLOWS_TABLE_70}    actions=goto_table:70
13 ${FLOWS_TABLE_80}    actions=goto_table:80
14 ${FLOWS_TABLE_90}    actions=goto_table:90
15 ${FLOWS_TABLE_100}    actions=goto_table:100
16 ${FLOWS_TABLE_110}    actions=goto_table:110
17 ${FLOW_DROP}      actions=drop
18
19 *** Test Cases ***
20 Make the OVS instance to listen for connection
21     [Documentation]    Connect OVS to ODL
22     [Tags]    OVSDB netvirt
23     Run Command On Remote System    ${MININET}    sudo ovs-vsctl del-manager
24     Run Command On Remote System    ${MININET}    sudo ovs-vsctl set-manager tcp:${CONTROLLER}:6640
25     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
26
27 Get controller connection
28     [Documentation]    This will make sure the controller is correctly set up/connected
29     [Tags]    OVSDB netvirt
30     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
31     Should Contain    ${output}    Manager "tcp:${CONTROLLER}:6640"
32     Should Contain    ${output}    is_connected: true
33
34 Get bridge setup
35     [Documentation]    This request is verifying that the br-int bridge has been created
36     [Tags]    OVSDB netvirt
37     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
38     Should Contain    ${output}    Controller "tcp:${CONTROLLER}:6653"
39     Should Contain    ${output}    Bridge br-int
40
41 Get port setup
42     [Documentation]    This will check the port br-int has been created
43     [Tags]    OVSDB netvirt
44     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
45     Should Contain    ${output}    Port br-int
46
47 Get interface setup
48     [Documentation]    This verify the interface br-int has been created
49     [Tags]    OVSDB netvirt
50     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-vsctl show
51     Should Contain    ${output}    Interface br-int
52
53 Get the bridge flows
54     [Documentation]    This request fetch the OF13 flow tables to verify the flows are correctly added
55     [Tags]    OVSDB netvirt
56     ${output}    Run Command On Remote System    ${MININET}    sudo ovs-ofctl -O Openflow13 dump-flows br-int
57     Should Contain    ${output}    ${FLOWS_TABLE_20}
58     Should Contain    ${output}    ${FLOW_CONTROLLER}
59     Should Contain    ${output}    ${FLOWS_TABLE_30}
60     Should Contain    ${output}    ${FLOWS_TABLE_40}
61     Should Contain    ${output}    ${FLOWS_TABLE_50}
62     Should Contain    ${output}    ${FLOWS_TABLE_60}
63     Should Contain    ${output}    ${FLOWS_TABLE_70}
64     Should Contain    ${output}    ${FLOWS_TABLE_80}
65     Should Contain    ${output}    ${FLOWS_TABLE_90}
66     Should Contain    ${output}    ${FLOWS_TABLE_100}
67     Should Contain    ${output}    ${FLOWS_TABLE_110}
68     Should Contain    ${output}    ${FLOW_DROP}