Skip to content

Commit

Permalink
[fast-reboot] Back up FDB/ARP/Default routes (#4795)
Browse files Browse the repository at this point in the history
FDB/ARP/Default routes files are deleted after swssconfig. This
makes debugging/validation of device conversion hard. This PR
saves those files in order to facilitate debugging of device conversion.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
  • Loading branch information
tahmed-dev authored and yxieca committed Jun 21, 2020
1 parent 062fd84 commit ab3400f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockers/docker-orchagent/swssconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ function fast_reboot {
if [[ -f /fdb.json ]];
then
swssconfig /fdb.json
rm -f /fdb.json
mv -f /fdb.json /fdb.json.1
fi

if [[ -f /arp.json ]];
then
swssconfig /arp.json
rm -f /arp.json
mv -f /arp.json /arp.json.1
fi

if [[ -f /default_routes.json ]];
then
swssconfig /default_routes.json
rm -f /default_routes.json
mv -f /default_routes.json /default_routes.json.1
fi

;;
Expand Down

0 comments on commit ab3400f

Please sign in to comment.