From 9bc297f0baed2b49967b79a6dabb1cc9e392278b Mon Sep 17 00:00:00 2001 From: Jon Andersson Date: Mon, 25 May 2009 14:09:05 -0700 Subject: Fix 4430: Not possible to create tunnel on fluctating interfaces --- templates/interfaces/tunnel/node.tag/local-ip/node.def | 10 ++++++---- 1 file 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(../@)" -- cgit v1.2.3