From f98b7600f9f5741b3322452785c84832c00ee490 Mon Sep 17 00:00:00 2001 From: kbabujp Date: Tue, 25 Jul 2023 04:55:23 +0000 Subject: [PATCH] Splitting platform specific condition check to pass test_nhop_group.py test in Marvell(Innovium) --- tests/ipfwd/test_nhop_group.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/ipfwd/test_nhop_group.py b/tests/ipfwd/test_nhop_group.py index 56be819283d..e09bfec3d55 100644 --- a/tests/ipfwd/test_nhop_group.py +++ b/tests/ipfwd/test_nhop_group.py @@ -379,7 +379,7 @@ def test_nhop_group_member_count(duthost, tbinfo): # increase CRM polling time asic.command("crm config polling interval {}".format(polling_interval)) - if is_cisco_device(duthost) or is_innovium_device(duthost): + if is_cisco_device(duthost): # Waiting for ARP routes to be synced and programmed time.sleep(sleep_time_sync_before) crm_stat = get_crm_info(duthost, asic) @@ -389,6 +389,9 @@ def test_nhop_group_member_count(duthost, tbinfo): # Consider both available nhop_grp and nhop_grp_mem before creating nhop_groups nhop_group_mem_count = int((nhop_group_mem_count) / default_max_nhop_paths * CISCO_NHOP_GROUP_FILL_PERCENTAGE) nhop_group_count = min(nhop_group_mem_count, nhop_group_count) + elif is_innovium_device(duthost): + crm_stat = get_crm_info(duthost, asic) + nhop_group_count = crm_stat["available_nhop_grp"] else: nhop_group_count = min(max_nhop, nhop_group_limit) + extra_nhops # initialize log analyzer