From ca1ac48282eeff16520e5c24310d764bd6aa0a44 Mon Sep 17 00:00:00 2001 From: rajendrat Date: Thu, 26 Sep 2024 15:11:19 -0700 Subject: [PATCH] Revert PR:12186 crm_stats_ipv6_route_available counter was not decremented, as we have a fix in platform side of code --- tests/crm/test_crm.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/crm/test_crm.py b/tests/crm/test_crm.py index 311f079aec6..cf6a06ddeb6 100755 --- a/tests/crm/test_crm.py +++ b/tests/crm/test_crm.py @@ -517,10 +517,6 @@ def test_crm_route(duthosts, enum_rand_one_per_hwsku_frontend_hostname, enum_fro logging.info("route add cmd: {}".format(route_add)) duthost.command(route_add) - if is_cisco_device(duthost): - # Sleep more time after route add - time.sleep(10) - check_available_counters = True if duthost.facts['asic_type'] == 'broadcom': check_available_counters = False @@ -546,9 +542,7 @@ def test_crm_route(duthosts, enum_rand_one_per_hwsku_frontend_hostname, enum_fro RESTORE_CMDS["test_crm_route"].append(route_del_cmd.format(asichost.ip_cmd, i, nh_ip)) pytest.fail("\"crm_stats_ipv{}_route_used\" counter was not incremented".format(ip_ver)) # Verify "crm_stats_ipv[4/6]_route_available" counter was decremented - # For Cisco-8000 devices, hardware counters are statistical-based with +/- 1 entry tolerance. - # Hence, the available counter may not increase as per initial value. - if check_available_counters and not (crm_stats_route_available - new_crm_stats_route_available > 1): + if check_available_counters and not (crm_stats_route_available - new_crm_stats_route_available >= 1): if is_mellanox_device(duthost): # Get sai sdk dump file in case test fail, we can get the LPM tree information get_sai_sdk_dump_file(duthost, f"sai_sdk_dump_after_add_v{ip_ver}_router")