diff options
Diffstat (limited to 'templates/protocols/rip/node.def')
-rw-r--r-- | templates/protocols/rip/node.def | 6 |
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 |