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] vnet endpoint [ip/ipv6] command [202012] #2421

Merged
merged 1 commit into from
Oct 5, 2022
Merged

[show] vnet endpoint [ip/ipv6] command [202012] #2421

merged 1 commit into from
Oct 5, 2022

Conversation

siqbal1986
Copy link
Contributor

Clone for 202012.
Orignal PR #2342

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)

@prsunny prsunny merged commit 94a3436 into sonic-net:202012 Oct 5, 2022
dprital added a commit to dprital/sonic-buildimage that referenced this pull request Oct 11, 2022
Update sonic-utilities submodule pointer to include the following:
* 94a3436 [show] vnet endpoint [ip/ipv6] command (sonic-net#2342) ([sonic-net#2421](sonic-net/sonic-utilities#2421))
* 84a0712 [VxLAN]Fix Vxlan delete command to throw error when there are references ([sonic-net#2404](sonic-net/sonic-utilities#2404))
* 1341f58 [202012] [generate_dump]: Enhance show techsupport for cisco-8000 platform ([sonic-net#2395](sonic-net/sonic-utilities#2395))

Signed-off-by: dprital <drorp@nvidia.com>
siqbal1986 added a commit to siqbal1986/sonic-utilities that referenced this pull request Nov 2, 2022
siqbal1986 added a commit that referenced this pull request Nov 3, 2022
What I did
Created a new CLI Command Show vnet endpoint with option to give IPv4 or IPv6 address parameter.

How I did it
This command goes over all vxlan tunnels and checks each endpoints monitor session to populate the endpoint state. while doing so it also tracks the prefixes pointing to an endpoint.

How to verify it
run show vnet endpoint or show vnet endpoint<ipv4 address/ipv6 address>.

>>show vnet endpoint  
Endpoint               Endpoint Monitor         prefix count  status
---------------------  ---------------------  --------------  --------
fddd:a100:a251::a10:1  fddd:a100:a251::a10:1               1  Unknown
fddd:a101:a251::a10:1  fddd:a101:a251::a10:1               1  Down
100.251.7.1            100.251.7.1                         3  Up


>>show vnet endpoint fddd:a101:a251::a10:1
Endpoint               Endpoint Monitor           prefix                        status
---------------------  -------------------------  ----------------------------  --------
fddd:a101:a251::a10:1  ['fddd:a101:a251::a10:1']  ['fddd:a156:a251::a6:1/128']  Down


>>show vnet endpoint 100.251.7.1
Endpoint     Endpoint Monitor    prefix                                                        status
-----------  ------------------  ------------------------------------------------------------  --------
100.251.7.1  ['100.251.7.1']     ['160.162.191.1/32', '160.163.191.1/32', '160.164.191.1/32']  Up
Previous command output (if the output of a command-line utility has changed)
None

New command output (if the output of a command-line utility has changed)
NA
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