Skip to content

[Mellanox] Add config sdk nvidia-bluefield sdk techsupport-ct-dump <enabled|disabled> command.#4696

Open
judsonwilson-nvidia wants to merge 1 commit into
sonic-net:masterfrom
judsonwilson-nvidia:tech_support_ct_dump
Open

[Mellanox] Add config sdk nvidia-bluefield sdk techsupport-ct-dump <enabled|disabled> command.#4696
judsonwilson-nvidia wants to merge 1 commit into
sonic-net:masterfrom
judsonwilson-nvidia:tech_support_ct_dump

Conversation

@judsonwilson-nvidia

Copy link
Copy Markdown
Contributor

Depends on:

sonic-sairedis#1993 (profile parsing), sonic-sairedis#1994 (sentinel cleanup at syncd startup).

Why I did it

SDK Connection Table dumps in techsupport on NVIDIA BlueField DPUs need a runtime enable/disable control. A sentinel file in the syncd container signals whether generate_dump should pass CT_TABLE_DUMP_ENABLE=true to saisdkdump during techsupport collection.

Work item tracking
  • Microsoft ADO (number only): N/A

How I did it

  • Add config platform nvidia-bluefield sdk techsupport-ct-dump {enabled|disabled} to create/remove sentinel file sdk-techsupport-ct-dump.enabled in syncd.
  • Update collect_nvidia_bluefield() in generate_dump to check the sentinel and run saisdkdump -p with CT_TABLE_DUMP_ENABLE=true when enabled.
  • Add unit tests in tests/config_nvidia_bluefield_test.py.

How to verify it

pytest tests/config_nvidia_bluefield_test.py -k techsupport_ct_dump
config platform nvidia-bluefield sdk techsupport-ct-dump enabled
show techsupport   # on BlueField DPU; confirm CT dump in archive
config platform nvidia-bluefield sdk techsupport-ct-dump disabled

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411

Tested branch (Please provide the tested image version)

  • master (202605–202611)

Description for the changelog

Add config platform nvidia-bluefield sdk techsupport-ct-dump command.

…abled>` command.

The command is for enabling, in `show techsupport` on NVIDIA SmartSwitch
DPUs, a platform-specific sdk dump of the Connection Table through the
saisdkdump utility. This part of the implementation creates or deletes a
sentinel file in the syncd container, which is the signal used by the
`show techsupport` command to determine if the feature is enabled.

Signed-off-by: Judson Wilson <judsonw@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@judsonwilson-nvidia judsonwilson-nvidia changed the title Add config sdk nvidia-bluefield sdk techsupport-ct-dump <enabled|disabled> command. [Mellanox] Add config sdk nvidia-bluefield sdk techsupport-ct-dump <enabled|disabled> command. Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants