diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-03-24 19:34:39 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-03-24 19:34:39 +0100 |
commit | 86f5b7e0ded02ff461f8c8039152484343c2ef6f (patch) | |
tree | afed97b4d4992f31a2df30efd49d1d055bcacc94 /templates/protocols/ospf/node.def | |
parent | 6553a09ea3978af2ed0a43fc41bdc99d1cd2be9a (diff) | |
download | vyatta-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/ospf/node.def')
-rw-r--r-- | templates/protocols/ospf/node.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/protocols/ospf/node.def b/templates/protocols/ospf/node.def index be8a8111..613aee78 100644 --- a/templates/protocols/ospf/node.def +++ b/templates/protocols/ospf/node.def @@ -12,4 +12,7 @@ begin: if [ "$COMMIT_ACTION" != DELETE ]; then end: if [ "$COMMIT_ACTION" == DELETE ]; then vtysh -c "configure terminal" -c "router ospf" -c "no ospf router-id" vtysh -c "configure terminal" -c "no router ospf" + rm -f /opt/vyatta/etc/quagga/ospfd.conf + else + vtysh -d ospfd -c 'sh run' > /opt/vyatta/etc/quagga/ospfd.conf fi |