Skip to content
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

Multi-ASIC support show ip/v6 route additional parameters (summary, tables,...etc) #1333

Merged
merged 1 commit into from
Dec 30, 2020

Conversation

gechiang
Copy link
Contributor

This PR is to port the same changes I made in the master branch PR (#1320) to 201911 branch.
The only difference is in setup.py where I need to modify so the package will include the right set of files. This was not required in the master branch but is needed in 201911 branch.

- What I did
Added Multi-ASIC support of handling "show ip/v6 route summary"
This was not supported for multi-ASIC platform previously.
When running this cmd under multi-ASIC platform the following output are expected:

admin@SONiC:$ show ip route summary -d all
asic0:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic1:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic2:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 43                   43
ibgp                 6408                 6408
------
Totals               6467                 6466


asic3:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 42                   42
ibgp                 6409                 6409
------
Totals               6467                 6466


asic4:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 0                    0
ibgp                 6462                 6458
------
Totals               6470                 6465


asic5:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 0                    0
ibgp                 6462                 6458
------
Totals               6470                 6465


admin@SONiC:$ show ip route summary -n asic2
asic2:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 43                   43
ibgp                 6408                 6408
------
Totals               6467                 6466


admin@SONiC:$ show ip route summary
asic0:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic1:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic2:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 43                   43
ibgp                 6408                 6408
------
Totals               6467                 6466


asic3:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 42                   42
ibgp                 6409                 6409
------
Totals               6467                 6466


admin@SONiC:$
 

- How to verify it
Perform "show ip/v6 route summary" on multi-asic platform to see that this option is now supported.
Before the change:

admin@SONiC:~$ show ip route summary
% Unknown command: show ip route sum 

After the added support:

admin@SONiC:~$ show ip route summary
asic0:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic1:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            6                    6
static               1                    0
ebgp                 6371                 6371
ibgp                 88                   88
------
Totals               6467                 6466


asic2:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 43                   43
ibgp                 6408                 6408
------
Totals               6467                 6466


asic3:
Route Source         Routes               FIB  (vrf default)
kernel               1                    1
connected            14                   14
static               1                    0
ebgp                 42                   42
ibgp                 6409                 6409
------
Totals               6467                 6466


admin@SONiC:$

@gechiang gechiang merged commit a9ef1c5 into sonic-net:201911 Dec 30, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
[Submodule update] sonic-utilities
- [db_migrator][201911] Support shared headroom in db_migrator on Mellanox platform (sonic-net#1261)
- Multi-ASIC support show ip/v6 route additional parameters (sonic-net#1333)

Signed-off-by: Stephen Sun <stephens@nvidia.com>
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.

2 participants