2017-01-19 22:56:26 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-04-20 11:12:27 -05:00
|
|
|
mkdir -p /etc/frr
|
2018-11-26 20:19:12 -06:00
|
|
|
|
|
|
|
CONFIG_TYPE=`sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["docker_routing_config_mode"]'`
|
|
|
|
|
|
|
|
if [ -z "$CONFIG_TYPE" ] || [ "$CONFIG_TYPE" == "unified" ]; then
|
|
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/frr.conf.j2 >/etc/frr/frr.conf
|
|
|
|
fi
|
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-01-24 21:16:55 -06:00
|
|
|
mkdir -p /var/sonic
|
|
|
|
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status
|