Skip to content

Commit

Permalink
Include unresolved neighbors when comparing APPL_DB and kernel neighb…
Browse files Browse the repository at this point in the history
…ors (#19164)

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

Include unresolved neighbors when comparing APPL_DB and kernel neighbors.
  • Loading branch information
theasianpianist authored and mssonicbld committed Sep 21, 2024
1 parent 058e099 commit 45cae84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/scripts/arp_update
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ while /bin/true; do
# resolve neighbor entries from CONFIG_DB in case of mismatch with kernel
DBNEIGH="$DBNEIGH $(sonic-db-cli CONFIG_DB keys NEIGH* | sed -e 's/|/:/g')"

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=',')
for neigh in $DBNEIGH; do
intf="$( cut -d ':' -f 2 <<< "$neigh" )"
ip="$( cut -d ':' -f 3- <<< "$neigh" )"
Expand Down

0 comments on commit 45cae84

Please sign in to comment.