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

[arp_update]: Resolve failed neighbors on dualtor #11615

Merged

Conversation

theasianpianist
Copy link
Contributor

@theasianpianist theasianpianist commented Aug 3, 2022

Signed-off-by: Lawrence Lee lawlee@microsoft.com

There is a separate PR to bring this change into the 202012 branch #11641

Why I did it

On dual ToR devices, failed neighbor entries result in tunnel routes being added to the peer switch by orchagent. These tunnel routes prevent the neighbor entries from being resolved if the neighbor ever becomes responsive again.

How I did it

In arp_update, check for FAILED or INCOMPLETE kernel neighbor entries and manually ping them to try and resolve the neighbor

How to verify it

Run sonic-mgmt test dualtor/test_orchagent_active_tor_downstream.py::test_active_tor_remove_neighbor_downstream_active[ipv6] (requires changes in this PR to pass: sonic-net/sonic-mgmt#6071)

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 3, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
# on dual ToR devices, try to resolve failed neighbor entries since
# these entries will have tunnel routes installed, preventing normal
# neighbor resolution
KERNEL_NEIGHBORS=$(ip -4 neigh show | grep Vlan | cut -d ' ' -f 1,3,6 --output-delimiter=','; \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed offline, let move this section to first loop.

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist theasianpianist merged commit 889741c into sonic-net:master Aug 9, 2022
yxieca pushed a commit that referenced this pull request Aug 11, 2022
In arp_update, check for FAILED or INCOMPLETE kernel neighbor entries and manually ping them to try and resolve the neighbor

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
skbarista pushed a commit to skbarista/sonic-buildimage that referenced this pull request Aug 17, 2022
In arp_update, check for FAILED or INCOMPLETE kernel neighbor entries and manually ping them to try and resolve the neighbor

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants