From 1eab36819cfeedd7c1f80a1aeae216baba9845e9 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Thu, 17 Apr 2008 01:04:24 +0000 Subject: Fix Bug 3164 set interfaces tunnel tun0 remote-ip <> doesn't take effect after committing - updating remote-ip or local-ip not allowed after tunnel creation - delete (commit failed) followed by set to another value will still - change the value of remote or local ip. bug 3171 filed for this behavior --- templates/interfaces/tunnel/node.tag/local-ip/node.def | 4 ++++ templates/interfaces/tunnel/node.tag/remote-ip/node.def | 4 ++++ 2 files changed, 8 insertions(+) (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 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(../@)" + -- cgit v1.2.3