Skip to content

Include unresolved neighbors when comparing APPL_DB and kernel neighbors#19164

Merged
kperumalbfn merged 1 commit intosonic-net:masterfrom
theasianpianist:arp-update-log-vol
Jun 5, 2024
Merged

Include unresolved neighbors when comparing APPL_DB and kernel neighbors#19164
kperumalbfn merged 1 commit intosonic-net:masterfrom
theasianpianist:arp-update-log-vol

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)

@theasianpianist theasianpianist requested a review from lguohan as a code owner June 1, 2024 01:21
@theasianpianist theasianpianist requested a review from prsunny June 1, 2024 01:22
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

@azure-pipelines
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?

@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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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 <[email protected]>

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