summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp/disable/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-16 15:25:14 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-16 15:25:14 -0800
commit5205f4cd0d68a78c86fce6588f9c276861bb9cdd (patch)
tree130d7894ab217188182b3443228338eafc89e407 /templates/protocols/bgp/disable/node.def
parent9773974965c7b639a125b44be3728d00af48e929 (diff)
downloadvyatta-cfg-quagga-5205f4cd0d68a78c86fce6588f9c276861bb9cdd.tar.gz
vyatta-cfg-quagga-5205f4cd0d68a78c86fce6588f9c276861bb9cdd.zip
Move daemon start to the disable node
Need way to get daemons started before top level node. Really a hack because of the way priorities are managed on node hieararchy
Diffstat (limited to 'templates/protocols/bgp/disable/node.def')
-rw-r--r--templates/protocols/bgp/disable/node.def12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/protocols/bgp/disable/node.def b/templates/protocols/bgp/disable/node.def
new file mode 100644
index 00000000..2795453f
--- /dev/null
+++ b/templates/protocols/bgp/disable/node.def
@@ -0,0 +1,12 @@
+type: bool
+help: Disable BGP daemon
+default: false
+update: if [ $VAR(@) == "true" ];
+ then sudo ${vyatta_sbindir}/vyatta-protocol stop bgpd
+ else sudo ${vyatta_sbindir}/vyatta-protocol start bgpd
+ fi
+possible completions:
+ true Stop BGP daemon
+ false Start BGP daemon
+
+allowed: echo "true false"