diff --git a/tests/qos/qos_sai_base.py b/tests/qos/qos_sai_base.py index 3fc79a5096f..b1e357a9ee7 100644 --- a/tests/qos/qos_sai_base.py +++ b/tests/qos/qos_sai_base.py @@ -879,6 +879,12 @@ def dutConfig( if len(dutPortIps[src_dut_index][src_asic_index]) != 0: testPortIps.update(dutPortIps) + if 'backend' in topo: + # since backend T0 utilize dot1q encap pkts, testPortIds need to be repopulated with the + # associated sub-interfaces stored in testPortIps + testPortIds[src_dut_index][src_asic_index] = sorted( + list(testPortIps[src_dut_index][src_asic_index].keys())) + elif topo in self.SUPPORTED_T1_TOPOS: # T1 is supported only for 'single_asic' or 'single_dut_multi_asic'. # So use src_dut as the dut