Skip to content

Fix show ip/v6 route summary non-multi-asic platform to interact with…#1306

Merged
abdosi merged 1 commit intosonic-net:201911from
gechiang:201911
Dec 15, 2020
Merged

Fix show ip/v6 route summary non-multi-asic platform to interact with…#1306
abdosi merged 1 commit intosonic-net:201911from
gechiang:201911

Conversation

@gechiang
Copy link
Contributor

@gechiang gechiang commented Dec 12, 2020

- What I did

  1. Changed the handling of "show ip/v6 route xxxx" for non-multi-asic platforms to be handled by FRR completely instead of using the common code added to support multi-asic platform. This is because there are some options such as summary and tables are not yet supported by multi-asic platform and we should not penalize non-multi-asic platform by sharing the same common code.
  2. Due to this change, had to modify/add additional unit tests to ensure good test coverage of > 95%.
  3. Took the opportunity to refactor the expected test data output strings into a standalone file to make the test code easier to read.

- How to verify it
Perform "show ip/v6 route summary" and many other options to ensure that both pizzabox and multi-asic platforms are handling them correctly.
Before the fix:

admin@str-a7050-acs-2:~$ show ip route summary
% Unknown command: show ip route sum 

After the fix:

admin@str-a7050-acs-2:~$ show ip route summary
Route Source         Routes               FIB  (vrf default)
kernel               1                    1                    
connected            26                   26                   
static               1                    0                    
ebgp                 6426                 6425                 
ibgp                 0                    0                    
------
Totals               6454                 6452                 


admin@str-a7050-acs-2:~$

This PR is created to port the same change of the master branch to 201911 branch for PR:
#1302

# Due to options such as "summary" and "tables" are not yet supported in multi-asic platform
# we will let FRR handle all the processing instead of handling it here for non multi-asic platform
if multi_asic.is_multi_asic():
if found_tables:
Copy link
Contributor

Choose a reason for hiding this comment

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

how are you checking for "summary" option there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For Non-multi-asic platform the parameter checking is all done by BGP itself.
For Multi-ASIC platform it currently will fail due to the added "json" parm was requested to BGP and BGP will fail the request. So there is no need to specifically check for this for now.
I will be adding the support for the Multi-ASIC platform for the "summary" option which at that time it will be inspected and handled accordingly. Not part of this PR though...

@abdosi abdosi merged commit 5b90976 into sonic-net:201911 Dec 15, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
b909766aab63da5e9a51e05fd2bf79e80db75e5 (HEAD -> 201911, origin/201911) Fix show ip/v6 route summary non-multi-asic platform to interact with FRR directly (sonic-net#1306)
057d2ee Add support to collect tech support on multi ASIC platform (sonic-net#1308)
38ab16d [CLI][PFCWD] Fix issue with specifying ports in pfcwd start on masic platforms (sonic-net#1203)

Signed-off-by: Abhishek Dosi <[email protected]>
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