From 45cae84658d9baea681bd8df13a86f3b158385ea Mon Sep 17 00:00:00 2001 From: Lawrence Lee Date: Wed, 5 Jun 2024 15:54:38 -0700 Subject: [PATCH] Include unresolved neighbors when comparing APPL_DB and kernel neighbors (#19164) Signed-off-by: Lawrence Lee Include unresolved neighbors when comparing APPL_DB and kernel neighbors. --- 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 e87c7db1f74e..73a454ea2acd 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" )"