From 358846aef34e08817dbc7d7eefcffb2f075f786b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 18 Feb 2009 12:54:35 -0800 Subject: Rework of protocol startup Use scripts to do start/stop (instead of disable template). Integrate reload into new quagga-manager script --- templates/protocols/rip/disable/node.def | 12 ------------ templates/protocols/rip/node.def | 2 ++ 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 templates/protocols/rip/disable/node.def (limited to 'templates/protocols/rip') 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 -- cgit v1.2.3