summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols')
-rw-r--r--templates/protocols/bgp/node.tag/network/node.def30
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; "