diff options
Diffstat (limited to 'templates/protocols/ripng/node.def')
-rw-r--r-- | templates/protocols/ripng/node.def | 7 |
1 files changed, 7 insertions, 0 deletions
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 + |