From 7ba08034c65ed8696db8a84d65a5c65ae4dfd450 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 24 Mar 2009 17:28:54 -0700 Subject: Change "syntax" check to a "commit" check. Seems like "syntax" check should only be done for thing related to the current node hierarchy. --- templates/interfaces/tunnel/node.tag/local-ip/node.def | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/tunnel/node.tag/local-ip/node.def b/templates/interfaces/tunnel/node.tag/local-ip/node.def index 9f9d52c0..0780210d 100644 --- a/templates/interfaces/tunnel/node.tag/local-ip/node.def +++ b/templates/interfaces/tunnel/node.tag/local-ip/node.def @@ -1,8 +1,8 @@ type: ipv4 help: Set the local IP address for this tunnel -syntax:expression: exec "if [ -z \"`ip addr list | grep $VAR(@) `\" ]; then \ - echo IP address $VAR(@) doesn\\'t exist on this system ; \ - exit 1 ; \ +commit:expression: exec "if [ -z \"`ip addr list | grep $VAR(@) `\" ]; then \ + echo IP address $VAR(@) doesn\\'t exist on this system ; \ + exit 1 ; \ fi ; " create:expression: "true" update:expression: "false" ; \ -- cgit v1.2.3