From 0a8695b4dc4b3041eb5d4f5d17981f17412b05cb Mon Sep 17 00:00:00 2001 From: Prince Date: Tue, 18 Feb 2020 22:01:00 +0000 Subject: [PATCH 1/2] Sleep done before mismatch handler --- files/scripts/arp_update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/scripts/arp_update b/files/scripts/arp_update index 4c7d655cfdaf..981e0bc30f83 100755 --- a/files/scripts/arp_update +++ b/files/scripts/arp_update @@ -47,6 +47,8 @@ while /bin/true; do eval `eval $ip6cmd` done + sleep 300 + # refresh neighbor entries from APP_DB in case of mismatch with kernel DBNEIGH=$(sonic-db-cli APPL_DB keys NEIGH_TABLE*) KERNEIGH4=$(ip -4 neigh show | grep Vlan | cut -d ' ' -f 1,3 --output-delimiter=',') @@ -67,5 +69,4 @@ while /bin/true; do fi done - sleep 300 done From 970c9927e8d15f573f8796bf23f5a2fdac62f8a9 Mon Sep 17 00:00:00 2001 From: Prince Date: Wed, 19 Feb 2020 22:34:44 +0000 Subject: [PATCH 2/2] Updated comment --- files/scripts/arp_update | 1 + 1 file changed, 1 insertion(+) diff --git a/files/scripts/arp_update b/files/scripts/arp_update index 981e0bc30f83..3cc9cd267985 100755 --- a/files/scripts/arp_update +++ b/files/scripts/arp_update @@ -47,6 +47,7 @@ while /bin/true; do eval `eval $ip6cmd` done + # sleep here before handling the mismatch as it is not required during startup sleep 300 # refresh neighbor entries from APP_DB in case of mismatch with kernel