From 86f5b7e0ded02ff461f8c8039152484343c2ef6f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 24 Mar 2015 19:34:39 +0100 Subject: Bug #521: save quagga daemon configs to /opt/vyatta/etc/quagga at commit time. --- templates/protocols/ripng/node.def | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'templates/protocols/ripng') 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 + -- cgit v1.2.3