summaryrefslogtreecommitdiff
path: root/templates/system/login
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 12:22:23 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 12:22:23 -0700
commitbf7375668f33050a9b642e54a0266982ef579137 (patch)
tree22fc28c11f252c8c278c5f1e5675f07c2c974f85 /templates/system/login
parentc7779f898380ed23f839ebad6ac79edba4d46b35 (diff)
downloadvyatta-cfg-quagga-bf7375668f33050a9b642e54a0266982ef579137.tar.gz
vyatta-cfg-quagga-bf7375668f33050a9b642e54a0266982ef579137.zip
Use val_help: features to format better
Previous change did not format val-help tag correctly
Diffstat (limited to 'templates/system/login')
-rw-r--r--templates/system/login/user/node.tag/authentication/public-keys/node.def2
-rw-r--r--templates/system/login/user/node.tag/group/node.def4
-rw-r--r--templates/system/login/user/node.tag/level/node.def6
3 files changed, 7 insertions, 5 deletions
diff --git a/templates/system/login/user/node.tag/authentication/public-keys/node.def b/templates/system/login/user/node.tag/authentication/public-keys/node.def
index d30d5afb..d4670e39 100644
--- a/templates/system/login/user/node.tag/authentication/public-keys/node.def
+++ b/templates/system/login/user/node.tag/authentication/public-keys/node.def
@@ -1,7 +1,7 @@
tag:
type: txt
help: Remote access public keys
-val_help:<txt>; key identifier used by ssh-keygen (usually of form user@host)
+val_help: key identifier used by ssh-keygen (usually of form user@host)
commit:expression: $VAR(./type/) != "" ; \
"Must configure public key type for $VAR(@)"
diff --git a/templates/system/login/user/node.tag/group/node.def b/templates/system/login/user/node.tag/group/node.def
index 2dc0abc9..f706521a 100644
--- a/templates/system/login/user/node.tag/group/node.def
+++ b/templates/system/login/user/node.tag/group/node.def
@@ -1,6 +1,9 @@
multi:
type: txt
help: Additional group membership
+val_help: <groupname>; Group name
+val_help: u32:0-65535; Group ID
+
syntax:expression: pattern $VAR(@) "^[a-zA-Z_][a-zA-Z0-9_-]*\\$?$"
; "Invalid group name $VAR(@)"
syntax:expression: ! $VAR(@) in \
@@ -10,4 +13,3 @@ allowed: awk -F: '
$1 == "quaggavty" || $1 == "vyattacfg" || $1 == "vyattaop" || \
$1 == "sudo" || $1 == "adm" || $1 == "operator" { next; }
{printf "%s ", $1}' </etc/group
-comp_help: Enter group name or numerical group id
diff --git a/templates/system/login/user/node.tag/level/node.def b/templates/system/login/user/node.tag/level/node.def
index 2596bd7a..54891031 100644
--- a/templates/system/login/user/node.tag/level/node.def
+++ b/templates/system/login/user/node.tag/level/node.def
@@ -2,6 +2,6 @@ type: txt
help: User privilege level
default: "admin"
syntax:expression: $VAR(@) in "admin", "operator"; "Allowed levels are \"admin\" and \"operator\""
-comp_help:Possible completions:
- admin Administrators
- operator Operators
+
+val_help: admin; Administrators
+val_help: operator; Operators