2017-01-19 22:56:26 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-04-20 11:12:27 -05:00
|
|
|
mkdir -p /etc/frr
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/bgpd.conf.j2 >/etc/frr/bgpd.conf
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/zebra.conf.j2 >/etc/frr/zebra.conf
|
2017-01-19 22:56:26 -06:00
|
|
|
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/isolate.j2 >/usr/sbin/bgp-isolate
|
2017-01-19 22:56:26 -06:00
|
|
|
chown root:root /usr/sbin/bgp-isolate
|
|
|
|
chmod 0755 /usr/sbin/bgp-isolate
|
|
|
|
|
2017-09-12 16:13:27 -05:00
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/unisolate.j2 >/usr/sbin/bgp-unisolate
|
2017-01-19 22:56:26 -06:00
|
|
|
chown root:root /usr/sbin/bgp-unisolate
|
|
|
|
chmod 0755 /usr/sbin/bgp-unisolate
|
|
|
|
|
2017-08-16 23:13:01 -05:00
|
|
|
# If there's an integrated-config file, go ahead and remote it
|
|
|
|
if [ -f /etc/frr/frr.conf ]; then
|
|
|
|
rm -rf /etc/frr/frr.conf
|
|
|
|
fi
|
|
|
|
|
2017-01-24 21:16:55 -06:00
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status
|