[show]show ip advertised route[202205] #2478
Merged
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.
Original PR
#2390
What I did
Added a new show command to see the VNET Tunnel routes being advertised by BGP. The output can be filtered based on IPv4/Ipv6 and community string.
How I did it
Iterate over the BGP_PROFILE_TABLE in Application DB and ADVERTISE_NETWORK_TABLE in state DB. Correlate the information and filter based on community string.
How to verify it
run **show vnet advertised-routes ** with optional community string.
$ show vnet advertised-route
Prefix Profile Community Id
160.62.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
160.63.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
160.64.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
fccc:a250:a251::a6:1/128
fddd:a150:a251::a6:1/128 FROM_SDN_SLB_ROUTES 1234:1235
$ show vnet advertised-route 1234:1235
Prefix Profile Community Id
160.62.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
160.63.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
160.64.191.1/32 FROM_SDN_SLB_ROUTES 1234:1235
fddd:a150:a251::a6:1/128 FROM_SDN_SLB_ROUTES 1234:1235
What I did
How I did it
How to verify it
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)