Skip to content

Commit 21dbd80

Browse files
Excluded the DPU interafces Ethernet-BP0 to Ethernet-BP7 from the minigraph_facts (#16465)
1 parent 09fca00 commit 21dbd80

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/qos/qos_sai_base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,16 @@ def dutConfig(
930930
dst_dut = get_src_dst_asic_and_duts['dst_dut']
931931
src_mgFacts = src_dut.get_extended_minigraph_facts(tbinfo)
932932
topo = tbinfo["topo"]["name"]
933+
src_mgFacts['minigraph_ptf_indices'] = {
934+
key: value
935+
for key, value in src_mgFacts['minigraph_ptf_indices'].items()
936+
if not key.startswith("Ethernet-BP")
937+
}
938+
src_mgFacts['minigraph_ports'] = {
939+
key: value
940+
for key, value in src_mgFacts['minigraph_ports'].items()
941+
if not key.startswith("Ethernet-BP")
942+
}
933943

934944
# LAG ports in T1 TOPO need to be removed in Mellanox devices
935945
if topo in self.SUPPORTED_T0_TOPOS or (topo in self.SUPPORTED_PTF_TOPOS and isMellanoxDevice(src_dut)):

0 commit comments

Comments
 (0)