Skip to content

[sfputil] Add loopback sub-command for debugging and module diagnostics for branch 202311#3448

Merged
lguohan merged 1 commit intosonic-net:202311from
xinyulin:sfputil_loopback_202311
Jul 31, 2024
Merged

[sfputil] Add loopback sub-command for debugging and module diagnostics for branch 202311#3448
lguohan merged 1 commit intosonic-net:202311from
xinyulin:sfputil_loopback_202311

Conversation

@xinyulin
Copy link
Copy Markdown
Contributor

What I did

Due to a conflict while cherry-picking of the PR#3369 to branch 202311, re-create this pull request to merge it manually

Add a debug group and a sub-command loopback under the sfputil command for debugging and module diagnostic purposes.

How I did it

Implement the loopback command by directly calling the set_loopback_mode() API.

How to verify it

Tested under Cisco8111 with Credo C1 cable.

  • Turn off loopback mode
    sfputil debug loopback Ethernet88 none
  • Turn on host input loopback
    sfputil debug loopback Ethernet88 host-side-input

Previous command output (if the output of a command-line utility has changed)

The loopback command is not supported in previous version.

New command output (if the output of a command-line utility has changed)

image

@xinyulin xinyulin force-pushed the sfputil_loopback_202311 branch from 0d41012 to b331db1 Compare July 25, 2024 05:15
@prgeor
Copy link
Copy Markdown
Contributor

prgeor commented Jul 25, 2024

@xinyulin thanks so much

@lguohan lguohan merged commit c29f0c6 into sonic-net:202311 Jul 31, 2024
@xinyulin xinyulin deleted the sfputil_loopback_202311 branch September 12, 2024 04:26
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.

3 participants