summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-04-17 01:04:24 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-04-17 01:04:24 +0000
commit1eab36819cfeedd7c1f80a1aeae216baba9845e9 (patch)
tree3fddfde286a9f3310682b0f1e5a59adafbc40afe /templates/interfaces/tunnel
parent86f77d69fe2f2e962b6c6441419853d21870c321 (diff)
downloadvyatta-cfg-quagga-1eab36819cfeedd7c1f80a1aeae216baba9845e9.tar.gz
vyatta-cfg-quagga-1eab36819cfeedd7c1f80a1aeae216baba9845e9.zip
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
Diffstat (limited to 'templates/interfaces/tunnel')
-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(../@)"
+