Skip to content

Commit 3efab1b

Browse files
committed
add more bgp config schema and add increment config
1 parent a215bcd commit 3efab1b

File tree

5 files changed

+703
-62
lines changed

5 files changed

+703
-62
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
run_cmd () {
4+
echo "$1"
5+
eval $1
6+
}
7+
8+
echo "Restart bgpd"
9+
10+
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"
11+
run_cmd "supervisorctl stop bgpd"
12+
run_cmd "sleep 1"
13+
run_cmd "supervisorctl start bgpd"

0 commit comments

Comments
 (0)