summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-03-24 19:34:39 +0100
committerDaniil Baturin <daniil@baturin.org>2015-03-24 19:34:39 +0100
commit86f5b7e0ded02ff461f8c8039152484343c2ef6f (patch)
treeafed97b4d4992f31a2df30efd49d1d055bcacc94 /templates/protocols/bgp
parent6553a09ea3978af2ed0a43fc41bdc99d1cd2be9a (diff)
downloadvyatta-cfg-quagga-86f5b7e0ded02ff461f8c8039152484343c2ef6f.tar.gz
vyatta-cfg-quagga-86f5b7e0ded02ff461f8c8039152484343c2ef6f.zip
Bug #521: save quagga daemon configs to /opt/vyatta/etc/quagga at commit time.
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r--templates/protocols/bgp/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def
index 39bb583e..08c0a91a 100644
--- a/templates/protocols/bgp/node.def
+++ b/templates/protocols/bgp/node.def
@@ -9,4 +9,7 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
end: if [ -z "$VAR(.)" ] || [ "$COMMIT_ACTION" != DELETE ]; then
/opt/vyatta/sbin/vyatta-bgp.pl --main
+ vtysh -d bgpd -c 'sh run' > /opt/vyatta/etc/quagga/bgpd.conf
+ else
+ rm -f /opt/vyatta/etc/quagga/bgpd.conf
fi