diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 11:44:55 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-05 11:44:55 -0800 |
commit | adf9198f83f8a7cf385c75b18b328490479bffa0 (patch) | |
tree | 5a74d8250e667162eb0e3820feef3ad4b5c64f27 /templates/protocols/bgp | |
parent | 6c40b894293c3472d5c428287465bfe363ae0255 (diff) | |
parent | 1a7d69a1db8249754ff3a0b43270fb6bfb5d6764 (diff) | |
download | vyatta-cfg-quagga-adf9198f83f8a7cf385c75b18b328490479bffa0.tar.gz vyatta-cfg-quagga-adf9198f83f8a7cf385c75b18b328490479bffa0.zip |
Merge branch 'jenner' of 192.168.100.1:git/vyatta-cfg-quagga into jenner
Diffstat (limited to 'templates/protocols/bgp')
-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 + |