From 445446c859bf5f4b6f4487b1e97c5d5d7ccd3464 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Thu, 2 Dec 2010 16:09:21 -0800
Subject: Block accidental use of virtual consoles

The devices tty1 ... are virtual consoles and should not be configured
through the CLI.
---
 templates/system/console/device/node.def | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'templates/system/console/device/node.def')

diff --git a/templates/system/console/device/node.def b/templates/system/console/device/node.def
index 76ce02bc..20fd6580 100644
--- a/templates/system/console/device/node.def
+++ b/templates/system/console/device/node.def
@@ -1,6 +1,8 @@
 tag:
 type: txt
 help: Serial console device name
-val_help: <ttyX>; Serial device name
-syntax:expression: pattern $VAR(@) "^tty[A-Z0-9]+$" \
-    	; "console $VAR(@): not a valid tty name"
+val_help: <ttyXX>; Serial device name
+
+syntax:expression: pattern $VAR(@) "^tty[A-Z]+[0-9]+$" \
+	; "console $VAR(@): not a valid tty name"
+
-- 
cgit v1.2.3

