diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-01 16:26:55 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-09 16:50:06 -0700 |
commit | 6f0d0febd81bd05f5d4a70e1663e26a7dfd38c35 (patch) | |
tree | c12bee8463324b1a99a9e6db0387e972e39de5f1 /templates/protocols/bgp | |
parent | 5ab430b8eb02da9e105e127404677e68c25fb84e (diff) | |
download | vyatta-cfg-quagga-6f0d0febd81bd05f5d4a70e1663e26a7dfd38c35.tar.gz vyatta-cfg-quagga-6f0d0febd81bd05f5d4a70e1663e26a7dfd38c35.zip |
Fix setup of protocols on boot
New CLI appears to require 'update:' rather than 'create:' on
tag nodes in order for them to get applied correctly. Workaround
this by changing all the create: to update: in Quagga config
Bug 4486
(cherry picked from commit 84536c188e359a9f046bc8f1c5a3180b3e03ee8b)
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r-- | templates/protocols/bgp/node.def | 1 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.def | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 8e21f914..074388bc 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -5,7 +5,6 @@ comp_help: \1 <1-4294967294>\tAS number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" begin: sudo /opt/vyatta/sbin/quagga-manager start bgpd -create: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" # we need to set default parameters in BGP here since we can't do it in # startup scripts as we don't know the AS number at that point update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \ diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def index 8e464dba..b6278e28 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.def @@ -8,7 +8,7 @@ comp_help: syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl \ --check-peer-name $VAR(@)" -create: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \ +update: if /opt/vyatta/sbin/vyatta-bgp.pl --check-if-peer-group \ --peergroup $VAR(@); then vyatta-vtysh -c "configure terminal" \ -c "router bgp $VAR(../@)" \ |