-
Notifications
You must be signed in to change notification settings - Fork 667
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 bgp neigh/network for multi asic #1574
Conversation
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
|
||
ns_list = multi_asic.get_namespace_list(namespace) | ||
output = "" | ||
for ns in ns_list: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question on the overall design to handle multi-ASIC. By looking at how this is implemented it looks like it will cycle through all the name spaces and no attempt to merge/filter but will display whatever each namespace has to the output directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gechiang, Yes, this command we just display neighbor from all the namespaces. No filtering done for this commands
type=str, | ||
show_default=True, | ||
help='Namespace name or all', | ||
callback=multi_asic_util.multi_asic_namespace_validation_callback) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's not lot of work can you explore adding the 'json' dump option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this PR is just adding support for multi asic. We can explore the json option in a future PR
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is port of the PR #1574 in 201911 branch This PR is to add support for the commands show ip bgp neighbor and show ip bgp network Add unit tests for these commands
…net#1574) This change is to add support for the commands "show ip bgp neighbor "and "show ip bgp network" for multi asic platforms Add unit tests for these commands Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com
What I did
This PR is to add support for the commands
show ip bgp neighbor
andshow ip bgp network
Add unit tests for these commands
How I did it
Add change to get the bgp neighbor and network information from each namespace
How to verify it
Check the command works on single and multi asic platforms
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)