Skip to content

[code sync] Merge code from sonic-net/sonic-utilities:202511 to 202603#299

Merged
mssonicbld merged 2 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge
Apr 2, 2026
Merged

[code sync] Merge code from sonic-net/sonic-utilities:202511 to 202603#299
mssonicbld merged 2 commits into
Azure:202603from
mssonicbld:sonicbld/202603-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 17c434c8 - (origin/202511) refactor: enhance show bfd summary command (#4411) (2026-04-01) [mssonicbld]<br>```

mssonicbld and others added 2 commits April 1, 2026 14:13
<!--
 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>
@mssonicbld mssonicbld merged commit f573f54 into Azure:202603 Apr 2, 2026
3 checks passed
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.

1 participant