8000 feat: support namespace arg for show bfd commands by cyw233 · Pull Request #3885 · sonic-net/sonic-utilities · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: support namespace arg for show bfd commands #3885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025

Conversation

cyw233
Copy link
Contributor
@cyw233 cyw233 commented May 19, 2025

What I did

Added the namespace support for show bfd summary & show bfd peer <peer_id> command. For example, users can run show bfd summary -n asic0, show bfd peer 10.0.1.1 -n asic0 and etc.

How I did it

How to verify it

Run show bfd summary -n <namespace> and show bfd peer <peer_id> -n <namespace> and verify the output

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

Nothing has changed to the output of these 2 commands, we are only adding the namespace argument support in this PR. Users can still use the sudo ip netns exec asicX ... way after this PR.

I confirmed the output of sudo ip netns exec asicX show bfd summary and show bfd summary -n asicX are the same, and sudo ip netns exec asicX show bfd peer <peer_id> and show bfd peer <peer_id> -n asicX are the same

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

Nothing has changed to the output of these 2 commands, we are only adding the namespace argument support in this PR. Users can still use the sudo ip netns exec asicX ... way after this PR.

I confirmed the output of sudo ip netns exec asicX show bfd summary and show bfd summary -n asicX are the same, and sudo ip netns exec asicX show bfd peer <peer_id> and show bfd peer <peer_id> -n asicX are the same

@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 force-pushed the support-ns-for-show-bfd branch from aa69ec7 to 5e830dd Compare May 21, 2025 22:34
@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 force-pushed the support-ns-for-show-bfd branch from 6116fcf to f15a964 Compare May 22, 2025 02:59
@mssonicbld
Copy link
Collaborator

/azp run

Copy link
Azure Pipelines successfully started running 1 pipeline(s).

@cyw233 cyw233 marked this pull request as ready for review May 22, 2025 03:30
@cyw233 cyw233 requested a review from abdosi May 22, 2025 03:30
Copy link
Contributor
@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit aeba823 into sonic-net:master May 22, 2025
7 checks passed
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202505: #3892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0