Skip to content

Commit 433d6e9

Browse files
authored
Update qos_sai_base.py (#12358)
add port index fix for t0 backend
1 parent f013d7a commit 433d6e9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/qos/qos_sai_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,12 @@ def dutConfig(
928928
if len(dutPortIps[src_dut_index][src_asic_index]) != 0:
929929
testPortIps.update(dutPortIps)
930930

931+
if 'backend' in topo:
932+
# since backend T0 utilize dot1q encap pkts, testPortIds need to be repopulated with the
933+
# associated sub-interfaces stored in testPortIps
934+
testPortIds[src_dut_index][src_asic_index] = sorted(
935+
list(testPortIps[src_dut_index][src_asic_index].keys()))
936+
931937
elif topo in self.SUPPORTED_T1_TOPOS:
932938
# T1 is supported only for 'single_asic' or 'single_dut_multi_asic'.
933939
# So use src_dut as the dut

0 commit comments

Comments
 (0)