From fc7a54a4043ea56ad615d177ee4e8bec14932481 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Wed, 25 Jun 2008 15:53:24 -0700 Subject: Fix 3379: tunnel interfaces are artificially limited to tun0-tun9 --- templates/interfaces/tunnel/node.def | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/interfaces/tunnel') diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def index aefd5935..d152dbe5 100644 --- a/templates/interfaces/tunnel/node.def +++ b/templates/interfaces/tunnel/node.def @@ -1,7 +1,8 @@ tag: type: txt help: Set tunnel interface -syntax:expression: $VAR(@) in "tun0", "tun1", "tun2", "tun3", "tun4", "tun5", "tun6", "tun7", "tun8", "tun9" ; "Must be (tun0 - tun9)" + +syntax:expression: exec "echo $VAR(@) | grep \"tun[0-9][0-9]\\{0,2\\}\$\" > /dev/null "; "tunnel must be (tun0-tun999)" commit:expression: $VAR(./local-ip/) != "" ; \ "Must configure the tunnel local-ip for $VAR(@)" @@ -21,4 +22,4 @@ create:expression: "\ delete:expression: "sudo ip tunnel del $VAR(@)" ; "Error deleting $VAR(@)" -comp_help: "Enter tunnel interface name (tun0 - tun9)" +comp_help: Enter tunnel interface name (tun0 - tun999) -- cgit v1.2.3