diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 11:43:31 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 11:43:31 -0800 |
commit | 1a7d69a1db8249754ff3a0b43270fb6bfb5d6764 (patch) | |
tree | 1caa26321dd5ed6d8951629c9b304badce64e483 /templates/protocols/bgp/node.def | |
parent | ca234139fa6b8ce95c144e422973fd5346e02c14 (diff) | |
download | vyatta-cfg-quagga-1a7d69a1db8249754ff3a0b43270fb6bfb5d6764.tar.gz vyatta-cfg-quagga-1a7d69a1db8249754ff3a0b43270fb6bfb5d6764.zip |
Manage daemons better
1. Shutdown bgp on last neighbor removed
2. use daemon name consistently
3. change options to watchquagga
Diffstat (limited to 'templates/protocols/bgp/node.def')
-rw-r--r-- | templates/protocols/bgp/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index ef80d812..ca1ae005 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -6,10 +6,14 @@ syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" create: if [ $(pgrep -c -x vyatta-bgpd) -eq 0 ] - then /opt/vyatta/sbin/vyatta-protocol start bgp + then ${vyatta_sbindir}/vyatta-protocol start bgpd fi vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \ -c "bgp network import-check" delete: vyatta-vtysh -c "configure terminal" -c "no router bgp $VAR(@)" + if ! ${vyatta_sbindir}/vyatta-check-typeless-node.pl "protocols bgp" + then ${vyatta_sbindir}/vyatta-protocol stop bgpd + fi + |