diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 14:45:09 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-07-09 16:50:06 -0700 |
commit | 5ab430b8eb02da9e105e127404677e68c25fb84e (patch) | |
tree | 1cd3aea4698f63df9b0f543d982e1360a03a8ff2 | |
parent | ce31fd38b3fbe1385d4f4b8fb42c757900b445b6 (diff) | |
download | vyatta-cfg-quagga-5ab430b8eb02da9e105e127404677e68c25fb84e.tar.gz vyatta-cfg-quagga-5ab430b8eb02da9e105e127404677e68c25fb84e.zip |
Convert template to new syntax
Use same syntax as other nodes
Precursor to automated edit of nodes for other bugfix.
(cherry picked from commit 435e80791de6b051ab88c7eaa7c47265bbef3be5)
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.tag/capability/orf/prefix-list/send/node.def | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/capability/orf/prefix-list/send/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/capability/orf/prefix-list/send/node.def index 73f1768f..8edd77c8 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/capability/orf/prefix-list/send/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/capability/orf/prefix-list/send/node.def @@ -1,14 +1,13 @@ help: Set capability to send the ORF commit:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $VAR(../../../../../@) --neighbor $VAR(../../../../@)" commit:expression: $VAR(../../../../peer-group/) == ""; "You can't set capability orf send for neighbor $VAR(../../../../@) in peer-group $VAR(../../../../peer-group/@)" -update:expression: "if [ -n \"$VAR(../../../../remote-as/@)\" ]; then \ - peer=\"remote-as $VAR(../../../../remote-as/@)\"; \ - else \ - peer=\"peer-group $VAR(../../../../peer-group/@)\"; \ - fi; \ - vyatta-vtysh -c \"configure terminal\" -c \"router bgp $VAR(../../../../../@)\" \ - -c \"neighbor $VAR(../../../../@) $peer\" \ - -c \"neighbor $VAR(../../../../@) capability orf prefix-list send\" " -delete:expression: "vyatta-vtysh --noerror -c \"configure terminal\" -c \"router bgp $VAR(../../../../../@)\" \ - -c \"no neighbor $VAR(../../../../@) capability orf prefix-list send\" " +update: if [ -n "$VAR(../../../../remote-as/@)" ] + then peer="remote-as $VAR(../../../../remote-as/@)" + else peer="peer-group $VAR(../../../../peer-group/@)" + fi + vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(../../../../../@)" \ + -c "neighbor $VAR(../../../../@) $peer" \ + -c "neighbor $VAR(../../../../@) capability orf prefix-list send" " +delete: vyatta-vtysh --noerror -c "configure terminal" -c "router bgp $VAR(../../../../../@)" \ + -c "no neighbor $VAR(../../../../@) capability orf prefix-list send" " |