Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/generic_config_updater/test_ecn_config_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_ecn_config_updates(duthost, ensure_dut_readiness, configdb_field, opera

json_patch = list()
values = list()
ecn_data = duthost.shell('sonic-db-cli CONFIG_DB hgetall "WRED_PROFILE|AZURE_LOSSLESS"')['stdout']
ecn_data = duthost.shell('sonic-db-cli CONFIG_DB hgetall "WRED_PROFILE|AZURE"')['stdout']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kperumalbfn , I don't feel this will be the right solution, because we are going to have 3 queues, so this test will not work even with this change. Do you mind to help see how to update this test to support these changes?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AharonMalkin This will break existing lossless WRED configs. Could you change this to get the per-queue configs from config-db to validate?

ecn_data = ast.literal_eval(ecn_data)
for field in configdb_field.split(','):
value = int(ecn_data[field]) + 1
Expand Down