[code sync] Merge code from sonic-net/sonic-utilities:202511 to 202603#299
Merged
Conversation
mssonicbld
commented
Apr 2, 2026
Collaborator
<!-- Please make sure you've read and understood our contributing guidelines: https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md failure_prs.log skip_prs.log Make sure all your commits include a signature generated with `git commit -s` ** If this is a bug fix, make sure your description includes "closes #xxxx", "fixes #xxxx" or "resolves #xxxx" so that GitHub automatically closes the related issue when the PR is merged. If you are adding/modifying/removing any command or utility script, please also make sure to add/modify/remove any unit tests from the tests directory as appropriate. If you are modifying or removing an existing 'show', 'config' or 'sonic-clear' subcommand, or you are adding a new subcommand, please make sure you also update the Command Line Reference Guide (doc/Command-Reference.md) to reflect your changes. Please provide the following information: --> #### What I did Update `show bfd summary` to aggregate BFD sessions across all ASIC namespaces when no `-n <namespace>` is provided. Extend multi-ASIC BFD tests and expected output for the all-ASIC summary. #### How I did it #### How to verify it Run the `show bfd summary` with the change can give you all BFD sessions across all ASIC namespaces. BTW, running the classic `sudo ip netns exec <namespace> show bfd summary` will still give you the BFD sessions of that namespace, so there's no regression ``` admin@dut:~$ sudo ip netns exec asic1 show bfd summary Total number of BFD sessions: 220 Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator ----------------------------- ----------- ------- ------- ------------ ----------------------------- ------------- ------------- ------------ ---------- --------------------- 2603:10b0:607:7:0:a:eb64:8700 default default Up async_active 2603:10b0:607:7:0:a:eb64:8b00 50 50 3 false 127 2603:10b0:607:7:0:a:eb62:8900 default default Up async_active 2603:10b0:607:7:0:a:eb62:8b00 50 50 3 false 104 2603:10b0:607:7:0:a:eb64:8300 default default Up async_active 2603:10b0:607:7:0:a:eb64:8b00 50 50 3 false 211 10.235.96.10 default default Up async_active 10.235.96.8 50 50 3 false 18 10.235.96.138 default default Up async_active 10.235.96.139 50 50 3 false 25 2603:10b0:607:7:0:a:eb62:c00 default default Up async_active 2603:10b0:607:7:0:a:eb62:800 50 50 3 false 108 2603:10b0:607:7:0:a:eb60:8700 default default Up async_active 2603:10b0:607:7:0:a:eb60:8b00 50 50 3 false 73 2603:10b0:607:7:0:a:eb61:8c00 default default Up async_active 2603:10b0:607:7:0:a:eb61:8b00 50 50 3 false 93 ... ``` #### Previous command output (if the output of a command-line utility has changed) ``` admin@dut:~$ show bfd summary Total number of BFD sessions: 0 Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator ----------- ----------- ----- ------- ------ ------------ ------------- ------------- ------------ ---------- --------------------- ``` #### New command output (if the output of a command-line utility has changed) ``` admin@dut:~$ show bfd summary Total number of BFD sessions: 660 Peer Addr Interface Vrf State Type Local Addr TX Interval RX Interval Multiplier Multihop Local Discriminator ------------------- ----------- ------- ------- ------------ ------------------- ------------- ------------- ------------ ---------- --------------------- 20.0.13.6 default default Up async_active 20.0.13.1 50 50 3 false 27 2603:10e2:400:2::7 default default Up async_active 2603:10e2:400:2::1 50 50 3 false 106 20.0.12.6 default default Up async_active 20.0.12.1 50 50 3 false 136 2603:10e2:400:14::9 default default Up async_active 2603:10e2:400:14::1 50 50 3 false 94 2603:10e2:400:6::5 default default Up async_active 2603:10e2:400:6::1 50 50 3 false 159 2603:10e2:400:14::7 default default Up async_active 2603:10e2:400:14::1 50 50 3 false 92 2603:10e2:400:11::8 default default Up async_active 2603:10e2:400:11::1 50 50 3 false 73 20.0.10.9 default default Up async_active 20.0.10.1 50 50 3 false 11 20.0.10.3 default default Up async_active 20.0.10.1 50 50 3 false 132 20.0.5.2 default default Up async_active 20.0.5.1 50 50 3 false 143 20.0.11.7 default default Up async_active 20.0.11.1 50 50 3 false 15 2603:10e2:400:1::2 default default Up async_active 2603:10e2:400:1::1 50 50 3 false 155 20.0.13.3 default default Up async_active 20.0.13.1 50 50 3 false 137 2603:10e2:400:14::2 default default Up async_active 2603:10e2:400:14::1 50 50 3 false 89 20.0.1.9 default default Up async_active 20.0.1.1 50 50 3 false 5 20.0.5.5 default default Up async_active 20.0.5.1 50 50 3 false 145 2603:10e2:400:5::3 default default Up async_active 2603:10e2:400:5::1 50 50 3 false 158 20.0.14.6 default default Up async_active 20.0.14.1 50 50 3 false 33 ... ``` Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.