summaryrefslogtreecommitdiff
path: root/templates/protocols/ripng
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/ripng
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/ripng')
-rw-r--r--templates/protocols/ripng/node.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def
index d4f228b0..6f12edce 100644
--- a/templates/protocols/ripng/node.def
+++ b/templates/protocols/ripng/node.def
@@ -2,3 +2,10 @@ priority: 660
help: Routing Information Protocol (RIPng) parameters
create: vtysh -c "configure terminal" -c "router ripng"
delete: vtysh -c "configure terminal" -c "no router ripng"
+end:
+ if [ "$COMMIT_ACTION" != "DELETE" ]; then
+ vtysh -d ripngd -c 'sh run' > /opt/vyatta/etc/quagga/ripngd.conf
+ else
+ rm -f /opt/vyatta/etc/quagga/ripngd.conf
+ fi
+