diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-03 10:57:21 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-09 16:50:06 -0700 |
commit | ad613a41773adf48e909fd13af26e63aaaf1488b (patch) | |
tree | 83378f4ab8266dee0351827a8aee242a414b0a6d /templates | |
parent | 16d65ac258ef19fb80c2f7b01030a87d185fd3e1 (diff) | |
download | vyatta-cfg-quagga-ad613a41773adf48e909fd13af26e63aaaf1488b.tar.gz vyatta-cfg-quagga-ad613a41773adf48e909fd13af26e63aaaf1488b.zip |
Start bgpd earlier in process
BGPD needs to be started when parameters and neighbors are set.
Bug 4486
(cherry picked from commit c600f91dee1ed705648eff626f8fd090a28720b5)
Diffstat (limited to 'templates')
3 files changed, 4 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def index 8e464dba..6b30f7cd 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.def @@ -8,6 +8,8 @@ comp_help: syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl \ --check-peer-name $VAR(@)" +begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd + create: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \ --peergroup $VAR(@); then vyatta-vtysh -c "configure terminal" \ diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def index 10804af4..453527aa 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def @@ -5,6 +5,7 @@ comp_help: syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294; \ "remote-as must be between 1 and 4294967294" +begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd # Create action so this leaf is done before others create: vyatta-vtysh -c "configure terminal" \ diff --git a/templates/protocols/bgp/node.tag/parameters/node.def b/templates/protocols/bgp/node.tag/parameters/node.def index 6bb752b5..6711aac1 100644 --- a/templates/protocols/bgp/node.tag/parameters/node.def +++ b/templates/protocols/bgp/node.tag/parameters/node.def @@ -1 +1,2 @@ help: Set BGP parameters +begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd |