diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2009-03-24 17:28:54 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-03-24 17:28:54 -0700 |
commit | 7ba08034c65ed8696db8a84d65a5c65ae4dfd450 (patch) | |
tree | 97996c6795d2b76dcc8e1770e3c96ca957dadba5 /templates/interfaces/tunnel | |
parent | aa2fbf830de34d8013fa2e47569b8304d25565ba (diff) | |
download | vyatta-cfg-quagga-7ba08034c65ed8696db8a84d65a5c65ae4dfd450.tar.gz vyatta-cfg-quagga-7ba08034c65ed8696db8a84d65a5c65ae4dfd450.zip |
Change "syntax" check to a "commit" check.
Seems like "syntax" check should only be done for thing related to the current node hierarchy.
Diffstat (limited to 'templates/interfaces/tunnel')
-rw-r--r-- | templates/interfaces/tunnel/node.tag/local-ip/node.def | 6 |
1 files changed, 3 insertions, 3 deletions
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" ; \ |