From 21dbd804383d5d1e44b32e0f22c8d22b0f427a58 Mon Sep 17 00:00:00 2001 From: nnelluri-cisco Date: Wed, 15 Jan 2025 13:09:20 -0800 Subject: [PATCH] Excluded the DPU interafces Ethernet-BP0 to Ethernet-BP7 from the minigraph_facts (#16465) --- tests/qos/qos_sai_base.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index ac266c640e4..9e7c0e5df89 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -930,6 +930,16 @@ def dutConfig( dst_dut = get_src_dst_asic_and_duts['dst_dut'] src_mgFacts = src_dut.get_extended_minigraph_facts(tbinfo) topo = tbinfo["topo"]["name"] + src_mgFacts['minigraph_ptf_indices'] = { + key: value + for key, value in src_mgFacts['minigraph_ptf_indices'].items() + if not key.startswith("Ethernet-BP") + } + src_mgFacts['minigraph_ports'] = { + key: value + for key, value in src_mgFacts['minigraph_ports'].items() + if not key.startswith("Ethernet-BP") + } # LAG ports in T1 TOPO need to be removed in Mellanox devices if topo in self.SUPPORTED_T0_TOPOS or (topo in self.SUPPORTED_PTF_TOPOS and isMellanoxDevice(src_dut)):