summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/ospf/node.def')
-rw-r--r--templates/protocols/ospf/node.def3
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