[fast-reboot] Back up FDB/ARP/Default routes (#4795)
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>
This commit is contained in:
parent
3d0126baeb
commit
10cd212577
@ -8,19 +8,19 @@ function fast_reboot {
|
|||||||
if [[ -f /fdb.json ]];
|
if [[ -f /fdb.json ]];
|
||||||
then
|
then
|
||||||
swssconfig /fdb.json
|
swssconfig /fdb.json
|
||||||
rm -f /fdb.json
|
mv -f /fdb.json /fdb.json.1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /arp.json ]];
|
if [[ -f /arp.json ]];
|
||||||
then
|
then
|
||||||
swssconfig /arp.json
|
swssconfig /arp.json
|
||||||
rm -f /arp.json
|
mv -f /arp.json /arp.json.1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /default_routes.json ]];
|
if [[ -f /default_routes.json ]];
|
||||||
then
|
then
|
||||||
swssconfig /default_routes.json
|
swssconfig /default_routes.json
|
||||||
rm -f /default_routes.json
|
mv -f /default_routes.json /default_routes.json.1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user