diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 14:45:09 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-28 14:45:09 -0700 |
commit | 435e80791de6b051ab88c7eaa7c47265bbef3be5 (patch) | |
tree | f5194208e5ece3473bbf0491ee281a79b31e090e | |
parent | a50404c259bcbb424743d80a18bf87319666bce8 (diff) | |
download | vyatta-cfg-quagga-435e80791de6b051ab88c7eaa7c47265bbef3be5.tar.gz vyatta-cfg-quagga-435e80791de6b051ab88c7eaa7c47265bbef3be5.zip |
Convert template to new syntax
Use same syntax as other nodes
Precursor to automated edit of nodes for other bugfix.
-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" " |