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