Adjust OpenFlow Entity Owner tests for changes in candidate behavior
[integration/test.git] / csit / libraries / ClusterOpenFlow.robot
index 1d1db18729dc4b8e7c70822571b3cc68ee6170be..23228ba9760a10df950819722a02283429cb2379 100644 (file)
@@ -41,6 +41,12 @@ Get OpenFlow Entity Owner Status For One Device
     ...    device_type=openflow    member_index=${controller_index}    candidate_list=${controller_index_list}
     [Return]    ${owner}    ${successor_list}
 
+Check OpenFlow Device Owner
+    [Arguments]    ${device}    ${controller_index}    ${expected_owner}    ${expected_candidate_list}=${EMPTY}
+    [Documentation]    Check owner and candidates for the device ${device}. Request is sent to controller ${controller_index}.
+    ${owner}    ${successor_list}    ClusterManagement.Verify_Owner_And_Successors_For_Device    device_name=${device}    device_type=openflow    member_index=${controller_index}    candidate_list=${expected_candidate_list}
+    Should Be Equal    ${owner}    ${expected_owner}
+
 Check OpenFlow Network Operational Information For Sample Topology
     [Arguments]    ${controller_index_list}=${EMPTY}
     [Documentation]    Check devices in tree,2 are in operational inventory and topology in all instances in ${controller_index_list}.