summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'templates/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(../@)"