X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fbgpcep%2Fbgpclustering%2Fsinglepeer_pc_shm_300kroutes.robot;h=6ee18dbef98e8e31b1a0a92958156d44d6bb3d72;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=6811e9bdb2e9a645fcb5d63db222b8418663a44d;hpb=97b82df2a8571d0d125232058c798fe340bb07c9;p=integration%2Ftest.git diff --git a/csit/suites/bgpcep/bgpclustering/singlepeer_pc_shm_300kroutes.robot b/csit/suites/bgpcep/bgpclustering/singlepeer_pc_shm_300kroutes.robot index 6811e9bdb2..6ee18dbef9 100644 --- a/csit/suites/bgpcep/bgpclustering/singlepeer_pc_shm_300kroutes.robot +++ b/csit/suites/bgpcep/bgpclustering/singlepeer_pc_shm_300kroutes.robot @@ -31,7 +31,6 @@ Resource ${CURDIR}/../../../libraries/SetupUtils.robot Resource ${CURDIR}/../../../libraries/ClusterManagement.robot Resource ${CURDIR}/../../../libraries/SSHKeywords.robot Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot -Resource ${CURDIR}/../../../libraries/CompareStream.robot Resource ${CURDIR}/PrefixcountKeywords.robot *** Variables *** @@ -47,23 +46,13 @@ Get Example Bgp Rib Owner ${session} = ClusterManagement.Resolve_Http_Session_For_Member ${rib_owner} BuiltIn.Set_Suite_Variable ${config_session} ${session} -Check_For_Empty_Ipv4_Topology_Before_Talking_1 +Check_For_Empty_Ipv4_Topology_Before_Talking [Documentation] Wait for ${EXAMPLE_IPV4_TOPOLOGY} to come up and empty. Give large timeout for case when BGP boots slower than restconf. [Tags] critical [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_1} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_For_Empty_Ipv4_Topology_Before_Talking_2 - [Documentation] Wait for ${EXAMPLE_IPV4_TOPOLOGY} to come up and empty. Give large timeout for case when BGP boots slower than restconf. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_2} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_For_Empty_Ipv4_Topology_Before_Talking_3 - [Documentation] Wait for ${EXAMPLE_IPV4_TOPOLOGY} to come up and empty. Give large timeout for case when BGP boots slower than restconf. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY} + FOR ${member_index} IN @{pc_all_indices} + BuiltIn.Wait_Until_Keyword_Succeeds ${INITIAL_RESTCONF_TIMEOUT} 1s PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_${member_index}} topology=${EXAMPLE_IPV4_TOPOLOGY} + END Reconfigure_ODL_To_Accept_Connection [Documentation] Configure BGP peer module with initiate-connection set to false. @@ -77,36 +66,20 @@ Start_Talking_BGP_Speaker [Documentation] Start Python speaker to connect to ODL. PrefixcountKeywords.Start_Bgp_Peer_And_Verify_Connected connection_retries=${3} -Wait_For_Stable_Talking_Ipv4_Topology_1 - [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable. This is done by checking stability of prefix count as seen from node 1. - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=0 session=${operational_1} topology=${EXAMPLE_IPV4_TOPOLOGY} - ... shards_list=${SHARD_MONITOR_LIST} shards_details=${init_shard_details} - -Wait_For_Stable_Talking_Ipv4_Topology_2 - [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable. This is done by checking stability of prefix count as seen from node 2. - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=0 session=${operational_2} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Wait_For_Stable_Talking_Ipv4_Topology_3 - [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable. This is done by checking stability of prefix count as seen from node 3. - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=0 session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY} +Wait_For_Stable_Talking_Ipv4_Topology + [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable. This is done by checking stability of prefix count as seen from all nodes. + FOR ${member_index} IN @{pc_all_indices} + PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=0 session=${operational_${member_index}} + ... topology=${EXAMPLE_IPV4_TOPOLOGY} shards_list=${SHARD_MONITOR_LIST} shards_details=${init_shard_details} + END -Check_Talking_Ipv4_Topology_Count_1 +Check_Talking_Ipv4_Topology_Count [Documentation] Count the routes in ${EXAMPLE_IPV4_TOPOLOGY} and fail if the count is not correct as seen from node 1. [Tags] critical [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Count ${COUNT} session=${operational_1} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_Talking_Ipv4_Topology_Count_2 - [Documentation] Count the routes in ${EXAMPLE_IPV4_TOPOLOGY} and fail if the count is not correct as seen from node 2. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Count ${COUNT} session=${operational_2} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_Talking_Ipv4_Topology_Count_3 - [Documentation] Count the routes in ${EXAMPLE_IPV4_TOPOLOGY} and fail if the count is not correct as seen from node 3. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Count ${COUNT} session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY} + FOR ${member_index} IN @{pc_all_indices} + PrefixCounting.Check_Ipv4_Topology_Count ${COUNT} session=${operational_${member_index}} topology=${EXAMPLE_IPV4_TOPOLOGY} + END Kill_Talking_BGP_Speaker [Documentation] Abort the Python speaker. Also, attempt to stop failing fast. @@ -115,38 +88,21 @@ Kill_Talking_BGP_Speaker BGPSpeaker.Kill_BGP_Speaker FailFast.Do_Not_Fail_Fast_From_Now_On -Wait_For_Stable_Ipv4_Topology_After_Listening_1 +Wait_For_Stable_Ipv4_Topology_After_Listening [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable again as seen from node 1. [Tags] critical - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=${COUNT} session=${operational_1} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Wait_For_Stable_Ipv4_Topology_After_Listening_2 - [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable again as seen from node 2. - [Tags] critical - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=${COUNT} session=${operational_2} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Wait_For_Stable_Ipv4_Topology_After_Listening_3 - [Documentation] Wait until ${EXAMPLE_IPV4_TOPOLOGY} becomes stable again as seen from node 3. - [Tags] critical - PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=${COUNT} session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY} + FOR ${member_index} IN @{pc_all_indices} + PrefixCounting.Wait_For_Ipv4_Topology_Prefixes_To_Become_Stable timeout=${bgp_filling_timeout} period=${CHECK_PERIOD} repetitions=${REPETITIONS} excluded_count=${COUNT} session=${operational_${member_index}} + ... topology=${EXAMPLE_IPV4_TOPOLOGY} + END -Check_For_Empty_Ipv4_Topology_After_Listening_1 +Check_For_Empty_Ipv4_Topology_After_Listening [Documentation] Example-ipv4-topology should be empty now as seen from node 1. [Tags] critical [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_1} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_For_Empty_Ipv4_Topology_After_Listening_2 - [Documentation] Example-ipv4-topology should be empty now as seen from node 2. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_2} topology=${EXAMPLE_IPV4_TOPOLOGY} - -Check_For_Empty_Ipv4_Topology_After_Listening_3 - [Documentation] Example-ipv4-topology should be empty now as seen from node 3. - [Tags] critical - [Setup] SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing - PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_3} topology=${EXAMPLE_IPV4_TOPOLOGY} + FOR ${member_index} IN @{pc_all_indices} + PrefixCounting.Check_Ipv4_Topology_Is_Empty session=${operational_${member_index}} topology=${EXAMPLE_IPV4_TOPOLOGY} + END Delete_Bgp_Peer_Configuration [Documentation] Revert the BGP configuration to the original state: without any configured peers.