summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Andersson <Jon.Andersson@Thales.no>2009-05-25 14:09:05 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-05-25 14:09:05 -0700
commit9bc297f0baed2b49967b79a6dabb1cc9e392278b (patch)
tree24eb985b299f2ee23f8499e439b3435eef490ccd
parenteb94a57b3e8fa23f9e0600802fdbbd6b7d57c6dc (diff)
downloadvyatta-cfg-quagga-9bc297f0baed2b49967b79a6dabb1cc9e392278b.tar.gz
vyatta-cfg-quagga-9bc297f0baed2b49967b79a6dabb1cc9e392278b.zip
Fix 4430: Not possible to create tunnel on fluctating interfaces
-rw-r--r--templates/interfaces/tunnel/node.tag/local-ip/node.def10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/interfaces/tunnel/node.tag/local-ip/node.def b/templates/interfaces/tunnel/node.tag/local-ip/node.def
index 0780210d..6e88e72d 100644
--- a/templates/interfaces/tunnel/node.tag/local-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/local-ip/node.def
@@ -1,9 +1,11 @@
type: ipv4
help: Set the local IP address for this tunnel
-commit:expression: exec "if [ -z \"`ip addr list | grep $VAR(@) `\" ]; then \
- echo IP address $VAR(@) doesn\\'t exist on this system ; \
- exit 1 ; \
- fi ; "
+
+syntax:expression: exec \
+ "if [ -z \"`ip addr list | grep $VAR(@) `\" ]; then \
+ echo Warning! IP address $VAR(@) doesn\\'t exist on this system ; \
+ fi ; "
+
create:expression: "true"
update:expression: "false" ; \
"Local IP can only be set at tunnel creation for $VAR(../@)"