-Create Bridge And Verify
- [Arguments] ${controller_index_list} ${controller_index} ${status}=${NONE}
- [Documentation] Create bridge in ${controller_index} and verify it gets applied in all instances in ${controller_index_list}.
- # need to get UUID which should be the same on all controllers in cluster, so asking controller1
- ${ovsdb_uuid}= Get OVSDB UUID controller_http_session=controller${controller_index}
- Set Suite Variable ${ovsdb_uuid}
+Get Ovsdb Entity Owner Status For One Device
+ [Arguments] ${controller_index_list} ${device}
+ [Documentation] Check Entity Owner Status and identify owner and candidate for an ovs device ${device}.
+ ${owner} ${candidates_list} Wait Until Keyword Succeeds 20s 1s Get Cluster Entity Owner For Ovsdb ${controller_index_list}
+ ... ovsdb ${device}
+ [Return] ${owner} ${candidates_list}
+
+Create Sample Bridge Manually And Verify
+ [Arguments] ${controller_index_list}
+ [Documentation] Create bridge br-s1 using OVS command and verify it gets created in all instances in ${controller_index_list}.
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl add-br br-s1
+ ${dictionary_operational}= Create Dictionary br-s1=5
+ ${dictionary_config}= Create Dictionary br-s1=0
+ Wait Until Keyword Succeeds 5s 1s ClusterKeywords.Check Item Occurrence At URI In Cluster ${controller_index_list} ${dictionary_config} ${CONFIG_TOPO_API}
+ Wait Until Keyword Succeeds 5s 1s ClusterKeywords.Check Item Occurrence At URI In Cluster ${controller_index_list} ${dictionary_operational} ${OPERATIONAL_TOPO_API}
+
+Add Sample Port To The Manual Bridge And Verify
+ [Arguments] ${controller_index_list}
+ [Documentation] Add Port vx1 to br-s1 using OVS command and verify it gets added in all instances in ${controller_index_list}.
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl add-port br-s1 vx1 -- set Interface vx1 type=vxlan
+ ${dictionary_operational}= Create Dictionary vx1=2
+ ${dictionary_config}= Create Dictionary vx1=0
+ Wait Until Keyword Succeeds 5s 1s ClusterKeywords.Check Item Occurrence At URI In Cluster ${controller_index_list} ${dictionary_config} ${CONFIG_TOPO_API}
+ Wait Until Keyword Succeeds 5s 1s ClusterKeywords.Check Item Occurrence At URI In Cluster ${controller_index_list} ${dictionary_operational} ${OPERATIONAL_TOPO_API}
+
+Delete Sample Bridge Manually And Verify
+ [Arguments] ${controller_index_list}
+ [Documentation] Delete bridge br-s1 using OVS command and verify it gets applied in all instances in ${controller_index_list}.
+ Utils.Run Command On Mininet ${TOOLS_SYSTEM_IP} sudo ovs-vsctl del-br br-s1
+ ${dictionary}= Create Dictionary br-s1=0
+ Wait Until Keyword Succeeds 5s 1s ClusterKeywords.Check Item Occurrence At URI In Cluster ${controller_index_list} ${dictionary} ${OPERATIONAL_TOPO_API}
+
+Create Sample Bridge And Verify
+ [Arguments] ${controller_index_list} ${controller_index}
+ [Documentation] Create bridge ${BRIDGE} in controller ${controller_index} and verify it gets created in all instances in ${controller_index_list}.