X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=csit%2Flibraries%2FClusterOpenFlow.robot;h=90088debfdc37b88916b1eb9b2e84262c2ce1e84;hb=4268da33a8e910c6a0351052adfc18b37a7b4113;hp=1d1db18729dc4b8e7c70822571b3cc68ee6170be;hpb=b87f6fa515871466e515dd6aec05e8733aeabe08;p=integration%2Ftest.git diff --git a/csit/libraries/ClusterOpenFlow.robot b/csit/libraries/ClusterOpenFlow.robot index 1d1db18729..90088debfd 100644 --- a/csit/libraries/ClusterOpenFlow.robot +++ b/csit/libraries/ClusterOpenFlow.robot @@ -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}. @@ -70,6 +76,15 @@ Add Sample Flow And Verify ClusterManagement.Put_As_Json_And_Check_Member_List_Or_All ${config_table_0}/flow/1 ${body} ${controller_index} ${controller_index_list} Wait Until Keyword Succeeds 15s 1s ClusterManagement.Check_Item_Occurrence_Member_List_Or_All uri=${operational_table_0} dictionary=${dictionary} member_index_list=${controller_index_list} +Verify Sample Flow + [Arguments] ${controller_index_list}=${EMPTY} + [Documentation] Verify sample flow gets applied in all instances in ${controller_index_list}. + # There are slight differences on the way He and Li plugin display table information. He plugin has an additional Hashmap field + # replicating some of the matches in the flows section. Same comment applies for further keywords. + Run Keyword If '${ODL_OF_PLUGIN}' == 'helium' Set Test Variable &{dictionary} 10.0.1.0/24=2 "output-node-connector":"1"=1 + Run Keyword If '${ODL_OF_PLUGIN}' == 'lithium' Set Test Variable &{dictionary} 10.0.1.0/24=1 "output-node-connector":"1"=1 + Wait Until Keyword Succeeds 15s 1s ClusterManagement.Check_Item_Occurrence_Member_List_Or_All uri=${operational_table_0} dictionary=${dictionary} member_index_list=${controller_index_list} + Modify Sample Flow And Verify [Arguments] ${controller_index} ${controller_index_list}=${EMPTY} [Documentation] Modify sample flow in ${controller_index} and verify it gets applied in all instances in ${controller_index_list}.