Skip to content

Commit

Permalink
Sleep done before mismatch handler (sonic-net#4165)
Browse files Browse the repository at this point in the history
* Sleep done before mismatch handler
  • Loading branch information
prsunny authored and Stepan Blyschak committed Feb 26, 2020
1 parent 8ebbcd9 commit c452615
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/scripts/arp_update
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ 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
DBNEIGH=$(sonic-db-cli APPL_DB keys NEIGH_TABLE*)
KERNEIGH4=$(ip -4 neigh show | grep Vlan | cut -d ' ' -f 1,3 --output-delimiter=',')
Expand All @@ -67,5 +70,4 @@ while /bin/true; do
fi
done

sleep 300
done

0 comments on commit c452615

Please sign in to comment.