diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-02 19:34:32 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-09 16:50:06 -0700 |
commit | 67ab58c6668dce8af9b98eb96bfe1b714409e08f (patch) | |
tree | 676554e599d9a062aea8b120aa9812e989a93b73 /templates/protocols/bgp | |
parent | 85f38872d097ac5162dea2e8e75abbeceb76534b (diff) | |
download | vyatta-cfg-quagga-67ab58c6668dce8af9b98eb96bfe1b714409e08f.tar.gz vyatta-cfg-quagga-67ab58c6668dce8af9b98eb96bfe1b714409e08f.zip |
Use create to get remote-as to go first
need remote-as to be highest priority sibling
Bug 4486
(cherry picked from commit cf0f8def872cf356f10e14c5ac0956022eab9d0b)
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def | 13 |
1 files changed, 13 insertions, 0 deletions
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 3813e3c8..10804af4 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 @@ -6,6 +6,19 @@ comp_help: syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294; \ "remote-as must be between 1 and 4294967294" +# Create action so this leaf is done before others +create: vyatta-vtysh -c "configure terminal" \ + -c "router bgp $VAR(../../@)" \ + -c "neighbor $VAR(../@) remote-as $VAR(@)"; + if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv6 $VAR(../@) + then + vyatta-vtysh -c "configure terminal" \ + -c "router bgp $VAR(../../@)" \ + -c "no neighbor $VAR(../@) activate" \ + -c "address-family ipv6" \ + -c "neighbor $VAR(../@) activate"; + fi + update: vyatta-vtysh -c "configure terminal" \ -c "router bgp $VAR(../../@)" \ -c "neighbor $VAR(../@) remote-as $VAR(@)"; |