-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Include unresolved neighbors when comparing APPL_DB and kernel neighbors #19164
Conversation
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=',') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@kperumalbfn , would you signoff and merge? |
…ors (sonic-net#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
Cherry-pick PR to 202305: #19245 |
…ors (#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
…ors (sonic-net#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
…ors (sonic-net#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
Cherry-pick PR to 202311: #19794 |
…ors (#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
…ors (sonic-net#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
Cherry-pick PR to 202405: #20321 |
…ors (#19164) Signed-off-by: Lawrence Lee <lawlee@microsoft.com> Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
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
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:
With the changes, we would not see the above log
Which release branch to backport (provide reason below if selected)
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)