summaryrefslogtreecommitdiff
path: root/templates/protocols/rip
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-18 12:54:35 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-18 15:40:25 -0800
commit358846aef34e08817dbc7d7eefcffb2f075f786b (patch)
tree6ef2c5a65fcaec19ea6035efadccd1390b732e7d /templates/protocols/rip
parent5205f4cd0d68a78c86fce6588f9c276861bb9cdd (diff)
downloadvyatta-cfg-quagga-358846aef34e08817dbc7d7eefcffb2f075f786b.tar.gz
vyatta-cfg-quagga-358846aef34e08817dbc7d7eefcffb2f075f786b.zip
Rework of protocol startup
Use scripts to do start/stop (instead of disable template). Integrate reload into new quagga-manager script
Diffstat (limited to 'templates/protocols/rip')
-rw-r--r--templates/protocols/rip/disable/node.def12
-rw-r--r--templates/protocols/rip/node.def2
2 files changed, 2 insertions, 12 deletions
diff --git a/templates/protocols/rip/disable/node.def b/templates/protocols/rip/disable/node.def
deleted file mode 100644
index 4cd56588..00000000
--- a/templates/protocols/rip/disable/node.def
+++ /dev/null
@@ -1,12 +0,0 @@
-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"
diff --git a/templates/protocols/rip/node.def b/templates/protocols/rip/node.def
index 541baa8d..b7f085a5 100644
--- a/templates/protocols/rip/node.def
+++ b/templates/protocols/rip/node.def
@@ -1,3 +1,5 @@
help: Configure Routing Information Protocol (RIP) parameters
+begin: sudo /opt/vyatta/sbin/quagga-manager start ripd
create: vyatta-vtysh -c "configure terminal" -c "router rip"
delete: vyatta-vtysh -c "configure terminal" -c "no router rip"
+end: sudo /opt/vyatta/sbin/quagga-manager update