Skip to content

Enable pfcwd at global level for snappi tests involving pfcwd#18406

Open
vivekverma-arista wants to merge 1 commit intosonic-net:masterfrom
vivekverma-arista:fix-snappi-pfcwd-tests
Open

Enable pfcwd at global level for snappi tests involving pfcwd#18406
vivekverma-arista wants to merge 1 commit intosonic-net:masterfrom
vivekverma-arista:fix-snappi-pfcwd-tests

Conversation

@vivekverma-arista
Copy link
Contributor

Description of PR

Summary: Enable pfcwd at global level for snappi tests involving pfcwd
Fixes #18405

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • msft-202405
  • msft-202412

Approach

What is the motivation for this PR?

The issue is described in detail here: #18405

How did you do it?

Introduced a helper to emable pfcwd globally for pfcwd snappi tests.

How did you verify/test it?

Ran snappi pfcwd tests on Arista platform and didn't notice the symptom.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: [email protected] and [email protected]

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

return pfcwd_stats


def enable_default_pfcwd_status(duthost, asic_value=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

have we explored the option of enabling it at image level?

meta_data = json.loads(res["stdout"])
pfc_status = meta_data["DEVICE_METADATA|localhost"]["value"].get("default_pfcwd_status", "")
if pfc_status == 'disable':
cmd = cmd_prefix + 'sonic-db-cli CONFIG_DB hset \"DEVICE_METADATA|localhost\" default_pfcwd_status enable'
Copy link
Contributor

Choose a reason for hiding this comment

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

need to revert back the change once test is finished.

@sdszhang sdszhang removed the status in SONiC Snappi Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Snappi Tests for pfcwd don't enable pfcwd at global level.

3 participants