From 2644b9e801764ad84ae06ac9b1b5c51b65ac0995 Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Sat, 1 Jun 2024 01:10:28 +0000 Subject: [PATCH] Include unresolved neighbors when comparing APPL_DB and kernel neighbors Signed-off-by: Lawrence Lee --- files/scripts/arp_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/scripts/arp_update b/files/scripts/arp_update index 7fd5667bca83..5b2b6989ee4b 100755 --- a/files/scripts/arp_update +++ b/files/scripts/arp_update @@ -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" )"