From 6fb63ac4b13a625093646476646173559e4fea8b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 3 Mar 2008 13:25:56 -0800 Subject: allow numbers in hostname Last commit blocked names like "test1", proper expression from RFC 952 is: ::= *["."] ::= [*[]] --- templates/system/host-name/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/system/host-name') diff --git a/templates/system/host-name/node.def b/templates/system/host-name/node.def index 437a939d..1aba2174 100644 --- a/templates/system/host-name/node.def +++ b/templates/system/host-name/node.def @@ -1,7 +1,7 @@ type: txt help: Configure system host name default: "vyatta" -syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alpha:]]*[[:alpha:]]$" +syntax:expression: pattern $VAR(@) "^[[:alpha:]][-.[:alnum:]]*[[:alnum:]]$" ; "invalid host name $VAR(@)" update: sudo sh -c " \ hostname '$VAR(@)' -- cgit v1.2.3