Skip to content

Commit f40795a

Browse files
lguohanShuotian Cheng
authored and
Shuotian Cheng
committed
[docker-frr]: Fix frr separated and unified configuration mode (#2962)
1 parent 91b1948 commit f40795a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dockers/docker-fpm-frr/start.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ if [ -z "$CONFIG_TYPE" ] || [ "$CONFIG_TYPE" == "separated" ]; then
88
sonic-cfggen -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/bgpd.conf.j2 > /etc/frr/bgpd.conf
99
sonic-cfggen -d -t /usr/share/sonic/templates/zebra.conf.j2 > /etc/frr/zebra.conf
1010
touch /etc/frr/vtysh.conf
11+
rm -f /etc/frr/frr.conf
1112
elif [ "$CONFIG_TYPE" == "unified" ]; then
1213
sonic-cfggen -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/frr.conf.j2 >/etc/frr/frr.conf
1314
echo "service integrated-vtysh-config" > /etc/frr/vtysh.conf
15+
rm -f /etc/frr/bgpd.conf /etc/frr/vtysh.conf
1416
fi
1517

1618
sonic-cfggen -d -t /usr/share/sonic/templates/isolate.j2 > /usr/sbin/bgp-isolate
@@ -35,7 +37,7 @@ supervisorctl start zebra
3537
supervisorctl start staticd
3638
supervisorctl start bgpd
3739

38-
if [ -z "$CONFIG_TYPE" ] || [ "$CONFIG_TYPE" == "separated" ]; then
40+
if [ "$CONFIG_TYPE" == "unified" ]; then
3941
supervisorctl start vtysh_b
4042
fi
4143

0 commit comments

Comments
 (0)