diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-12-06 17:47:26 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-12-06 17:47:26 -0800 |
commit | 8eb36ff99677255cc337c55f2a4ba061d09edf49 (patch) | |
tree | 5e7045f9ed6c27985ec826ae53af122458c137c0 /templates | |
parent | 065bbf6b587c41127373734f1aa1e2673445044c (diff) | |
download | vyatta-cfg-quagga-8eb36ff99677255cc337c55f2a4ba061d09edf49.tar.gz vyatta-cfg-quagga-8eb36ff99677255cc337c55f2a4ba061d09edf49.zip |
Fix "bgp <> network".
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/bgp/node.tag/network/node.def | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/templates/protocols/bgp/node.tag/network/node.def b/templates/protocols/bgp/node.tag/network/node.def index e5620244..27600d65 100644 --- a/templates/protocols/bgp/node.tag/network/node.def +++ b/templates/protocols/bgp/node.tag/network/node.def @@ -2,19 +2,19 @@ tag: type: ipv4net help: "Specify a network to announce via BGP" syntax: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $(@)" -syntax: ($(./backdoor/) == "") && ($(./route-map/) == ""); "Must specify route-map or backdoor but not both" +commit: !($(./backdoor/) != "" && $(./route-map/) != ""); "May specify route-map or backdoor but not both" delete: "touch /tmp/`echo $(@) | sed 's!/!!'`.\\$PPID" -end: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../@)\" \ - -c \"no network $(@)\"; \ - if [ -f \"/tmp/`echo $(@) | sed 's!/!!'`.\\$PPID\" ]; then \ - rm -rf /tmp/`echo $(@) | sed 's!/!!'`.\\$PPID; \ - else \ - if [ -n \"$(./backdoor/@)\" ]; then \ - COND=\"backdoor\"; - fi; \ - if [ -n \"$(./route-map/@)\" ]; then \ - COND=\"route-map $(./route-map/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../@)\" \ - -c \"network $(@) \\$COND\"; \ - fi; " +end: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../@)\" \ + -c \"no network $(@)\"; \ + if [ -f \"/tmp/`echo $(@) | sed 's!/!!'`.\\$PPID\" ]; then \ + rm -rf /tmp/`echo $(@) | sed 's!/!!'`.\\$PPID; \ + else \ + if [ -n \"$(./backdoor/)\" ]; then \ + COND=\"backdoor\"; \ + fi; \ + if [ -n \"$(./route-map/@)\" ]; then \ + COND=\"route-map $(./route-map/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../@)\" \ + -c \"network $(@) \\$COND\"; \ + fi; " |