summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/system/console/node.def7
-rw-r--r--templates/system/console/node.tag/speed/node.def6
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/system/console/node.def b/templates/system/console/node.def
new file mode 100644
index 00000000..9e946c7e
--- /dev/null
+++ b/templates/system/console/node.def
@@ -0,0 +1,7 @@
+tag:
+type: txt
+help: Serial console configuration
+allowed: (cd $dev; echo tty*)
+syntax:expression: pattern $VAR(@) "^tty[A-Z0-9]+$" \
+ ; "console $VAR(@): not a valid tty name"
+end: /opt/vyatta/sbin/vyatta_update_console.pl
diff --git a/templates/system/console/node.tag/speed/node.def b/templates/system/console/node.tag/speed/node.def
new file mode 100644
index 00000000..cf2a0d09
--- /dev/null
+++ b/templates/system/console/node.tag/speed/node.def
@@ -0,0 +1,6 @@
+type: u32
+help: Console baud rate
+allowed: echo 1200 2400 4800 9600 19200 38400 57600 115200
+syntax:expression: $VAR(@) in 1200 2400 4800 9600 19200 38400 57600 115200 ;
+ "unknown baud rate"
+val_help: u32: 1200-115200: Baud rate for console port