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

[show]show ip advertised route[202205] #2478

Conversation

siqbal1986
Copy link
Contributor

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)

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
@siqbal1986 siqbal1986 requested review from prsunny and zjswhhh November 4, 2022 18:23
@siqbal1986 siqbal1986 merged commit fff5f67 into sonic-net:202205 Nov 4, 2022
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