summaryrefslogtreecommitdiff
path: root/templates/protocols/rip/disable/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/rip/disable/node.def')
-rw-r--r--templates/protocols/rip/disable/node.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/protocols/rip/disable/node.def b/templates/protocols/rip/disable/node.def
new file mode 100644
index 00000000..4cd56588
--- /dev/null
+++ b/templates/protocols/rip/disable/node.def
@@ -0,0 +1,12 @@
+type: bool
+help: Disable RIP daemon
+default: false
+update: if [ $VAR(@) == "true" ];
+ then sudo ${vyatta_sbindir}/vyatta-protocol stop ripd
+ else sudo ${vyatta_sbindir}/vyatta-protocol start ripd
+ fi
+possible completions:
+ true Stop RIP daemon
+ false Start RIP daemon
+
+allowed: echo "true false"