+ [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 Owner Stop
+ [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
+ ${original_successor}= Collections.Get From List ${original_successor_list} 0
+ BuiltIn.Set Suite Variable ${original_owner}
+ BuiltIn.Set Suite Variable ${original_successor_list}
+ BuiltIn.Set Suite Variable ${original_successor}
+
+Check Switch Generates Slave Connection Before Owner Stop
+ [Documentation] Check switch s1 is connected to Slave.
+ ${original_slave}= BuiltIn.Set Variable ${ODL_SYSTEM_${original_successor}_IP}
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 50s
+ ... 1s
+ ... OvsManager.Should Be Slave
+ ... s1
+ ... ${original_slave}
+ ... update_data=${True}
+
+Check Shards Status Before Owner Stop
+ [Documentation] Check Status for all shards in OpenFlow application.
+ ClusterOpenFlow.Check OpenFlow Shards Status
+
+Stop Owner Instance
+ [Documentation] Stop Owner Instance and verify it is shutdown
+ ClusterManagement.Stop Single Member ${original_owner}
+ BuiltIn.Set Suite Variable ${new_cluster_list} ${original_successor_list}
+
+Check Shards Status After Stop
+ [Documentation] Check Status for all shards in OpenFlow application.
+ ClusterOpenFlow.Check OpenFlow Shards Status After Cluster Event ${new_cluster_list}
+
+Check Entity Owner Status And Find Owner and Successor After Stop
+ [Documentation] Check Entity Owner Status and identify owner and successor.
+ ${new_owner} ${new_successor_list}= ClusterOpenFlow.Get OpenFlow Entity Owner Status For One Device
+ ... openflow:1
+ ... ${original_successor}
+ ... ${new_cluster_list}
+ ... after_stop=True
+ BuiltIn.Set Suite Variable ${new_owner}
+
+Check Stats Are Not Frozen After Owner Stop
+ [Documentation] Check that duration flow stat is increasing in new owner.
+ BuiltIn.Wait Until Keyword Succeeds 30s 1s Check Flow Stats Are Not Frozen ${new_owner}
+
+Remove Configuration In Owner and Verify After Owner Stop
+ [Documentation] Remove 1 group 1&2 and 1 flow in every switch.
+ Remove Single Group And Flow On Member ${new_owner}
+
+Check Flows After Owner Stop In Operational DS
+ [Documentation] Check Flows in Operational DS in new owner.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 30s
+ ... 1s
+ ... ClusterOpenFlow.Check Number Of Flows On Member
+ ... ${less_flows}
+ ... ${new_owner}
+
+Check Groups After Owner Stop In Operational DS
+ [Documentation] Check Groups in Operational DS in new owner.
+ BuiltIn.Wait Until Keyword Succeeds
+ ... 10s
+ ... 1s
+ ... ClusterOpenFlow.Check Number Of Groups On Member
+ ... ${less_groups}
+ ... ${new_owner}
+
+Check Flows In Switch After Owner Stop
+ [Documentation] Check Flows in switch.