Skip to content

Commit

Permalink
update the qos sai test for lossy queue according to the PR: sonic-ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
JibinBao committed Feb 19, 2025
1 parent 953ff41 commit abc7410
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/qos/qos_sai_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2135,8 +2135,8 @@ def egressLossyProfile(
logger.info(f"{srcport} has only lossy queue")
if is_lossy_queue_only:
is_lossy_queue_only = True
queue_table_postfix_list = ['1-2', '3', '4']
queue_to_dscp_map = {'1-2': '1', '3': '3', '4': '5'}
queue_table_postfix_list = ['1-3', '4', '5']
queue_to_dscp_map = {'1-3': '1', '4': '11', '5': '31'}
queues = random.choice(queue_table_postfix_list)
else:
queues = "0-2"
Expand All @@ -2152,8 +2152,8 @@ def egressLossyProfile(
)
if is_lossy_queue_only:
egress_lossy_profile['lossy_dscp'] = queue_to_dscp_map[queues]
egress_lossy_profile['lossy_queue'] = '1' if queues == '1-2' else queues
logger.info(f"egressLossyProfile: {egress_lossy_profile}")
egress_lossy_profile['lossy_queue'] = '1' if queues == '1-3' else queues
logger.info(f"queues:{queues}, egressLossyProfile: {egress_lossy_profile}")

yield egress_lossy_profile

Expand Down

0 comments on commit abc7410

Please sign in to comment.