diff --git a/tests/qos/test_qos_sai.py b/tests/qos/test_qos_sai.py index 5523b26507..33eb9f617e 100644 --- a/tests/qos/test_qos_sai.py +++ b/tests/qos/test_qos_sai.py @@ -919,7 +919,8 @@ def testQosSaiBufferPoolWatermark( fillMin = qosConfig[bufPool]["pkts_num_fill_ingr_min"] buf_pool_roid = ingressLosslessProfile["bufferPoolRoid"] elif "wm_buf_pool_lossy" in bufPool: - qosConfig = dutQosConfig["param"] + baseQosConfig = dutQosConfig["param"] + qosConfig = baseQosConfig.get(portSpeedCableLength, baseQosConfig) triggerDrop = qosConfig[bufPool]["pkts_num_trig_egr_drp"] fillMin = qosConfig[bufPool]["pkts_num_fill_egr_min"] buf_pool_roid = egressLossyProfile["bufferPoolRoid"]