summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/tunnel/node.tag/local-ip/node.def4
-rw-r--r--templates/interfaces/tunnel/node.tag/remote-ip/node.def4
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/interfaces/tunnel/node.tag/local-ip/node.def b/templates/interfaces/tunnel/node.tag/local-ip/node.def
index d40417a8..9f9d52c0 100644
--- a/templates/interfaces/tunnel/node.tag/local-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/local-ip/node.def
@@ -4,3 +4,7 @@ syntax: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" ; \
+ "Local IP can only be set at tunnel creation for $VAR(../@)"
+
diff --git a/templates/interfaces/tunnel/node.tag/remote-ip/node.def b/templates/interfaces/tunnel/node.tag/remote-ip/node.def
index 7bdb4725..e8bb2ef0 100644
--- a/templates/interfaces/tunnel/node.tag/remote-ip/node.def
+++ b/templates/interfaces/tunnel/node.tag/remote-ip/node.def
@@ -1,2 +1,6 @@
type: ipv4
help: Set the remote IP address for this tunnel
+create:expression: "true"
+update:expression: "false" ; \
+ "Remote IP can only be set at tunnel creation for $VAR(../@)"
+