+ [Documentation] Check Flows in switch.
+ MininetKeywords.Check Flows In Mininet ${mininet_conn_id} ${all_flows}
+
+Check Entity Owner Status And Find Owner and Successor Before Fail
+ [Documentation] Check Entity Owner Status and identify owner and successor for first switch s1.
+ ${original_owner} ${original_successor_list}= ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device
+ ... openflow:1
+ ... 1
+ BuiltIn.Set Suite Variable ${original_owner}
+ BuiltIn.Set Suite Variable ${new_cluster_list} ${original_successor_list}
+
+Disconnect Mininet From Owner
+ [Documentation] Disconnect mininet from the owner
+ ${original_owner_list}= BuiltIn.Create List ${original_owner}
+ MininetKeywords.Disconnect Cluster Mininet break ${original_owner_list}
+ BuiltIn.Set Suite Variable ${original_owner_list}
+
+Check Entity Owner Status And Find Owner and Successor After Fail
+ [Documentation] Check Entity Owner Status and identify owner and successor for first switch s1.
+ ${new_owner} ${new_successor_list}= BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device
+ ... openflow:1
+ ... 1
+ ... ${new_cluster_list}
+ ... after_stop=True
+ ${owner_list}= BuiltIn.Create List ${original_owner} ${new_owner}
+ BuiltIn.Set Suite Variable ${owner_list}
+ BuiltIn.Set Suite Variable ${new_owner}
+ BuiltIn.Set Suite Variable ${new_successor_list}
+
+Check Switch Moves To New Master
+ [Documentation] Check switch s1 is connected to new Master.
+ ${new_master}= BuiltIn.Set Variable ${ODL_SYSTEM_${new_owner}_IP}
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... OvsManager.Should Be Master
+ ... s1
+ ... ${new_master}
+ ... update_data=${True}
+
+Check Linear Topology After Disconnect
+ [Documentation] Check Linear Topology.
+ BuiltIn.Wait Until Keyword Succeeds 30s 1s ClusterOpenFlow.Check Linear Topology On Member ${SWITCHES}
+
+Check Stats Are Not Frozen After Disconnect
+ [Documentation] Check that duration flow stat is increasing
+ BuiltIn.Wait Until Keyword Succeeds 30s 1s Check Flow Stats Are Not Frozen
+
+Remove Flows And Groups After Mininet Is Disconnected
+ [Documentation] Remove 1 group 1&2 and 1 flow in every switch.
+ Remove Single Group And Flow On Member
+
+Check Flows In Operational DS After Mininet Is Disconnected
+ [Documentation] Check Flows in Operational DS.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 30s
+ ... 1s
+ ... ClusterOpenFlow.Check Number Of Flows On Member
+ ... ${less_flows}
+
+Check Groups In Operational DS After Mininet Is Disconnected
+ [Documentation] Check Groups in Operational DS.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... ClusterOpenFlow.Check Number Of Groups On Member
+ ... ${less_groups}
+
+Check Flows In Switch After Mininet Is Disconnected
+ [Documentation] Check Flows in switch.
+ MininetKeywords.Check Flows In Mininet ${mininet_conn_id} ${less_flows}
+
+Reconnect Mininet To Owner
+ [Documentation] Reconnect mininet to switch 1 owner.
+ MininetKeywords.Disconnect Cluster Mininet restore ${original_owner_list}
+
+Check Entity Owner Status And Find Owner and Successor After Reconnect
+ [Documentation] Check Entity Owner Status and identify owner and successor for first switch s1.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device
+ ... openflow:1
+ ... 1
+
+Add Flows And Groups After Owner Reconnect
+ [Documentation] Add 1 group type 1&2 and 1 flow in every switch.
+ Add Single Group And Flow On Member
+
+Check Stats Are Not Frozen After Owner Reconnect
+ [Documentation] Check that duration flow stat is increasing.
+ BuiltIn.Wait Until Keyword Succeeds 30s 1s Check Flow Stats Are Not Frozen
+
+Check Flows After Owner Reconnect In Operational DS
+ [Documentation] Check Flows in Operational DS.
+ BuiltIn.Wait Until Keyword Succeeds 30s 1s ClusterOpenFlow.Check Number Of Flows On Member ${all_flows}
+
+Check Groups After Owner Reconnect In Operational DS
+ [Documentation] Check Groups in Operational DS.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... ClusterOpenFlow.Check Number Of Groups On Member
+ ... ${all_groups}
+
+Check Flows After Owner Reconnect In Switch
+ [Documentation] Check Flows in switch.