Skip to content

Commit

Permalink
add more bgp config schema and add increment config
Browse files Browse the repository at this point in the history
  • Loading branch information
batmancn committed Dec 6, 2018
1 parent a215bcd commit 3efab1b
Show file tree
Hide file tree
Showing 5 changed files with 703 additions and 62 deletions.
13 changes: 13 additions & 0 deletions dockers/docker-fpm-quagga/bgp_retain_restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

run_cmd () {
echo "$1"
eval $1
}

echo "Restart bgpd"

run_cmd "sonic-cfggen -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/bgpd.conf.j2 > /etc/quagga/bgpd.conf"
run_cmd "supervisorctl stop bgpd"
run_cmd "sleep 1"
run_cmd "supervisorctl start bgpd"
Loading

0 comments on commit 3efab1b

Please sign in to comment.