[frr] fix default zebra config not inserted into empty zebra.conf (#16747)

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
This commit is contained in:
Stepan Blyshchak 2023-10-19 03:47:24 +03:00 committed by mssonicbld
parent ba7aacd49e
commit eb1451301f

View File

@ -46,7 +46,8 @@ write_default_zebra_config()
FILE_NAME=${1}
grep -q '^no fpm use-next-hop-groups' $FILE_NAME || {
sed -i '1i no fpm use-next-hop-groups\nfpm address 127.0.0.1' $FILE_NAME
echo "no fpm use-next-hop-groups" >> $FILE_NAME
echo "fpm address 127.0.0.1" >> $FILE_NAME
}
}