2 Documentation Test suite connecting ODL to Mininet
3 Resource ../../../libraries/Utils.txt
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
20 Make the OVS instance to listen for connection
21 [Documentation] Connect OVS to ODL
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
27 Get controller connection
28 [Documentation] This will make sure the controller is correctly set up/connected
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
35 [Documentation] This request is verifying that the br-int bridge has been created
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
42 [Documentation] This will check the port br-int has been created
44 ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show
45 Should Contain ${output} Port br-int
48 [Documentation] This verify the interface br-int has been created
50 ${output} Run Command On Remote System ${MININET} sudo ovs-vsctl show
51 Should Contain ${output} Interface br-int
54 [Documentation] This request fetch the OF13 flow tables to verify the flows are correctly added
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}