Fix for additional intf flap during fast-reboot (#9166)

This commit is contained in:
tjchadaga 2021-11-08 15:21:11 -08:00 committed by Qi Luo
parent bea36d963e
commit 9a1b1bc44e
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,12 @@ function fast_reboot {
mv -f /default_routes.json /default_routes.json.1
fi
if [[ -f /media_config.json ]];
then
swssconfig /media_config.json
mv -f /media_config.json /media_config.json.1
fi
;;
*)
;;

View File

@ -158,6 +158,7 @@ function postStartAction()
test -e /host/fast-reboot/fdb.json && docker cp /host/fast-reboot/fdb.json swss$DEV:/
test -e /host/fast-reboot/arp.json && docker cp /host/fast-reboot/arp.json swss$DEV:/
test -e /host/fast-reboot/default_routes.json && docker cp /host/fast-reboot/default_routes.json swss$DEV:/
test -e /host/fast-reboot/media_config.json && docker cp /host/fast-reboot/media_config.json swss$DEV:/
rm -fr /host/fast-reboot
fi
docker exec swss$DEV touch /ready # signal swssconfig.sh to go