2 Documentation Test suite for Ovsdb Southbound Cluster
3 Suite Setup Create Controller Sessions
4 Suite Teardown Delete All Sessions
5 Library RequestsLibrary
6 Resource ../../../libraries/ClusterOvsdb.robot
7 Resource ../../../libraries/ClusterKeywords.robot
8 Resource ../../../libraries/MininetKeywords.robot
9 Variables ../../../variables/Variables.py
10 Library ../../../libraries/Common.py
11 Resource ../../../libraries/Utils.robot
12 Resource ../../../libraries/OVSDB.robot
13 Resource ../../../libraries/KarafKeywords.robot
16 @{FLOW_TABLE_LIST} actions=goto_table:20 actions=CONTROLLER:65535 actions=goto_table:30 actions=goto_table:40 actions=goto_table:50 actions=goto_table:60 actions=goto_table:70 actions=goto_table:80 actions=goto_table:90 actions=goto_table:100 actions=goto_table:110 actions=drop
19 Create Original Cluster List
20 [Documentation] Create original cluster list.
21 ${original_cluster_list} Create Controller Index List
22 Set Suite Variable ${original_cluster_list}
23 Log ${original_cluster_list}
25 Verify Net-virt Features
26 [Documentation] Installing Net-virt Console related features (odl-ovsdb-openstack)
27 Verify Feature Is Installed odl-ovsdb-openstack ${ODL_SYSTEM_1_IP}
28 Verify Feature Is Installed odl-ovsdb-openstack ${ODL_SYSTEM_2_IP}
29 Verify Feature Is Installed odl-ovsdb-openstack ${ODL_SYSTEM_3_IP}
31 Check Shards Status Before Fail
32 [Documentation] Check Status for all shards in Ovsdb application.
33 Check Ovsdb Shards Status ${original_cluster_list}
35 Start Mininet Multiple Connections
36 [Documentation] Start mininet with connection to all cluster instances.
37 ${mininet_conn_id} Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list}
38 Set Suite Variable ${mininet_conn_id}
39 Log ${mininet_conn_id}
41 Get manager connection
42 [Documentation] This will verify if the OVS manager is connected
44 Verify OVS Reports Connected
46 Check Operational topology
47 [Documentation] Check Operational topology
48 ${dictionary}= Create Dictionary ovsdb://uuid/=5
49 Wait Until Keyword Succeeds 20s 2s Check Item Occurrence At URI In Cluster ${original_cluster_list} ${dictionary} ${OPERATIONAL_TOPO_API}
52 [Documentation] This request is verifying that the br-int bridge has been created
54 ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show
56 Should Contain ${output} Bridge br-int
59 [Documentation] This will check the port br-int has been created
61 ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show
63 Should Contain ${output} Port br-int
66 [Documentation] This verify the interface br-int has been created
68 ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-vsctl show
70 Should Contain ${output} Interface br-int
74 [Documentation] This request fetch the OF13 flow tables to verify the flows are correctly added
76 ${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-ofctl -O Openflow13 dump-flows br-int
78 : FOR ${flows} IN @{FLOW_TABLE_LIST}
79 \ Should Contain ${output} ${flows}