diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-02 19:34:32 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-06-02 19:34:32 -0700 |
commit | cf0f8def872cf356f10e14c5ac0956022eab9d0b (patch) | |
tree | 58d3d4f066959de490b4f1c143b2571f88db9cb3 /templates | |
parent | fdc280eb8c6b81e922ed2c26f2a4a49c52e5732c (diff) | |
download | vyatta-cfg-quagga-cf0f8def872cf356f10e14c5ac0956022eab9d0b.tar.gz vyatta-cfg-quagga-cf0f8def872cf356f10e14c5ac0956022eab9d0b.zip |
Use create to get remote-as to go first
need remote-as to be highest priority sibling
Bug 4486
Diffstat (limited to 'templates')
-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(@)"; |