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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors #19164

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

theasianpianist
Copy link
Contributor

Why I did it

On dual TOR devices, excluding INCOMPLETE and FAILED neighbors when checking for neighbor mismatches between APPL_DB and the kernel will result in all zero MAC neighbors being logged as mismatches.

Work item tracking
  • Microsoft ADO 28266511:

How I did it

How to verify it

On a dual TOR device, add a FAILED neighbor entry (can simply ping some unreachable IP in the VLAN subnet).
Without the changes, we would expect to see the following log every 5 minutes:

swss#arp_update: mismatch arp entry, pinging <neighbor IP> on <VLAN interface>

With the changes, we would not see the above log

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

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

Tested branch (Please provide the tested image version)

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>
KERNEIGH4=$(ip -4 neigh show | grep Vlan | grep -v 'FAILED\|INCOMPLETE' | cut -d ' ' -f 1,3 --output-delimiter=',')
KERNEIGH6=$(ip -6 neigh show | grep -v fe80 | grep Vlan | grep -v 'FAILED\|INCOMPLETE' | cut -d ' ' -f 1,3 --output-delimiter=',')
KERNEIGH4=$(ip -4 neigh show | grep Vlan | cut -d ' ' -f 1,3 --output-delimiter=',')
KERNEIGH6=$(ip -6 neigh show | grep -v fe80 | grep Vlan | cut -d ' ' -f 1,3 --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.

Is this change required only for dual-tors? This change looks common for all devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

05a85b5 introduced this change originally, before that commit this was the behavior for all devices.

Copy link
Contributor

Choose a reason for hiding this comment

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

Backport to other branches? 202305 and 202311?

@kperumalbfn
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Contributor

prsunny commented Jun 5, 2024

@kperumalbfn , would you signoff and merge?

@kperumalbfn kperumalbfn merged commit 222ce17 into sonic-net:master Jun 5, 2024
20 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 7, 2024
…ors (sonic-net#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #19245

mssonicbld pushed a commit that referenced this pull request Jun 7, 2024
…ors (#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
arun1355492 pushed a commit to arun1355492/sonic-buildimage that referenced this pull request Jul 26, 2024
…ors (sonic-net#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 2, 2024
…ors (sonic-net#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #19794

mssonicbld pushed a commit that referenced this pull request Aug 3, 2024
…ors (#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Sep 20, 2024
…ors (sonic-net#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #20321

mssonicbld pushed a commit that referenced this pull request Sep 21, 2024
…ors (#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
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.

7 participants