-
Notifications
You must be signed in to change notification settings - Fork 684
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
[show] Add 'ip/ipv6 bgp network' commands #888
Merged
Merged
Conversation
This file contains 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
… normal commands for 'show ip bgp'
pavel-shirshov
previously approved these changes
Apr 24, 2020
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.
Please wait for Joe's review
jleveque
suggested changes
Apr 24, 2020
jleveque
suggested changes
Apr 24, 2020
jleveque
approved these changes
Apr 24, 2020
pavel-shirshov
approved these changes
Apr 24, 2020
abdosi
pushed a commit
that referenced
this pull request
Apr 27, 2020
Co-authored-by: Travis Van Duyn <trvanduy@microsoft.com>
abdosi
pushed a commit
to abdosi/sonic-utilities
that referenced
this pull request
Aug 4, 2020
Co-authored-by: Travis Van Duyn <trvanduy@microsoft.com>
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
[Vxlan] : adding show vnet/vxlan cmds (sonic-net#880) [show][bgp] Use only 'show ip bgp' as the base and use bgp_frr_v4 file for FRR routing stack (sonic-net#884) [fast reboot] set a fast-reboot DB flag (sonic-net#887) [show] Add 'ip/ipv6 bgp network' commands (sonic-net#888)
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.
… normal commands for 'show ip bgp'
- What I did
I updated the bgp_frr_v4.py and bgp_frr_v6.py files to have a new function for "network" since the Click framework required this. I was going to use "route" but this conflicted with "route-map" in the vtysh so I found "network" was not something that would conflict and used that as it made the most sense. The will support the normal networking commands of "show ip bgp [ipaddress|prefix] [options]" and "show ipv6 bgp [ipaddress|prefix] [options]"
- How I did it
Add a new "network" function so the VTYSH commands can be referenced by the SONIC CLI.
- How to verify it
The command didn't exist on the SONIC CLI. I had to add it.
- Previous command output (if the output of a command-line utility has changed)
For both IPv4 and IPv6 these commands didn't exist.
For IPv4:
For IPv6
- New command output (if the output of a command-line utility has changed)
So these two commands have some subcommands as well.
Here are the IPv4 commands
Here are the IPv6 command outputs: