diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 13:55:27 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-21 13:55:27 -0700 |
commit | 1b2b777227ed2645c68b5ab05931beafff9ccf5d (patch) | |
tree | de961de899568c935cd357150915576c8c2d49c8 /templates/system/syslog | |
parent | 79f2a3d43c3f7726d0771e9d3770471776c8b360 (diff) | |
download | vyatta-cfg-quagga-1b2b777227ed2645c68b5ab05931beafff9ccf5d.tar.gz vyatta-cfg-quagga-1b2b777227ed2645c68b5ab05931beafff9ccf5d.zip |
Add completion for text fields with limited values
For all nodes that do 'syntax:expression: $VAR(@) in' add allowed
tag to show possible values
Diffstat (limited to 'templates/system/syslog')
10 files changed, 23 insertions, 0 deletions
diff --git a/templates/system/syslog/console/facility/node.def b/templates/system/syslog/console/facility/node.def index 67d41a27..4082a46f 100644 --- a/templates/system/syslog/console/facility/node.def +++ b/templates/system/syslog/console/facility/node.def @@ -2,6 +2,9 @@ tag: type: txt help: Facility for console logging syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "protocols", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility" +allowed: echo auth authpriv cron daemon kern lpr mail mark news protocols \ + security syslog user uucp \ + local0 local1 local2 local3 local4 local5 local6 local7 all val_help: all; All facilities excluding "mark" val_help: auth; Authentication and authorization diff --git a/templates/system/syslog/console/facility/node.tag/level/node.def b/templates/system/syslog/console/facility/node.tag/level/node.def index bae531af..888f3eff 100644 --- a/templates/system/syslog/console/facility/node.tag/level/node.def +++ b/templates/system/syslog/console/facility/node.tag/level/node.def @@ -2,6 +2,7 @@ type: txt help: Logging level syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level" default: "err" +allowed: echo emerg alert crit err warning notice info debug val_help: emerg; Emergency messages val_help: alert; Urgent messages diff --git a/templates/system/syslog/file/node.tag/facility/node.def b/templates/system/syslog/file/node.tag/facility/node.def index 6c80f388..8544bfba 100644 --- a/templates/system/syslog/file/node.tag/facility/node.def +++ b/templates/system/syslog/file/node.tag/facility/node.def @@ -3,6 +3,10 @@ type: txt help: Facility for file logging syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "protocols", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility" +allowed: echo auth authpriv cron daemon kern lpr mail mark news protocols \ + security syslog user uucp \ + local0 local1 local2 local3 local4 local5 local6 local7 all + val_help: all; All facilities excluding "mark" val_help: auth; Authentication and authorization val_help: authpriv; Non-system authorization diff --git a/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def index bae531af..888f3eff 100644 --- a/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def +++ b/templates/system/syslog/file/node.tag/facility/node.tag/level/node.def @@ -2,6 +2,7 @@ type: txt help: Logging level syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level" default: "err" +allowed: echo emerg alert crit err warning notice info debug val_help: emerg; Emergency messages val_help: alert; Urgent messages diff --git a/templates/system/syslog/global/facility/node.def b/templates/system/syslog/global/facility/node.def index 5107dd0e..58198d9f 100644 --- a/templates/system/syslog/global/facility/node.def +++ b/templates/system/syslog/global/facility/node.def @@ -2,6 +2,9 @@ tag: type: txt help: Facility for system logging syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "protocols", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all" ; "\"$VAR(@)\" is not a valid logging facility" +allowed: echo auth authpriv cron daemon kern lpr mail mark news protocols \ + security syslog user uucp \ + local0 local1 local2 local3 local4 local5 local6 local7 all val_help: all; All facilities excluding "mark" val_help: auth; Authentication and authorization diff --git a/templates/system/syslog/global/facility/node.tag/level/node.def b/templates/system/syslog/global/facility/node.tag/level/node.def index bae531af..888f3eff 100644 --- a/templates/system/syslog/global/facility/node.tag/level/node.def +++ b/templates/system/syslog/global/facility/node.tag/level/node.def @@ -2,6 +2,7 @@ type: txt help: Logging level syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level" default: "err" +allowed: echo emerg alert crit err warning notice info debug val_help: emerg; Emergency messages val_help: alert; Urgent messages diff --git a/templates/system/syslog/host/node.tag/facility/node.def b/templates/system/syslog/host/node.tag/facility/node.def index 883be27f..76b8f793 100644 --- a/templates/system/syslog/host/node.tag/facility/node.def +++ b/templates/system/syslog/host/node.tag/facility/node.def @@ -2,6 +2,10 @@ tag: type: txt help: Facility for host logging syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "protocols", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility" +allowed: echo auth authpriv cron daemon kern lpr mail mark news protocols \ + security syslog user uucp \ + local0 local1 local2 local3 local4 local5 local6 local7 all + val_help: all; All facilities excluding "mark" val_help: auth; Authentication and authorization diff --git a/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def index bae531af..888f3eff 100644 --- a/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def +++ b/templates/system/syslog/host/node.tag/facility/node.tag/level/node.def @@ -2,6 +2,7 @@ type: txt help: Logging level syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level" default: "err" +allowed: echo emerg alert crit err warning notice info debug val_help: emerg; Emergency messages val_help: alert; Urgent messages diff --git a/templates/system/syslog/user/node.tag/facility/node.def b/templates/system/syslog/user/node.tag/facility/node.def index e7d11110..c5cfad72 100644 --- a/templates/system/syslog/user/node.tag/facility/node.def +++ b/templates/system/syslog/user/node.tag/facility/node.def @@ -2,6 +2,10 @@ tag: type: txt help: Facility for user logging syntax:expression: $VAR(@) in "auth", "authpriv", "cron", "daemon", "kern", "lpr", "mail", "mark", "news", "protocols", "security", "syslog", "user", "uucp", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "all"; "\"$VAR(@)\" is not a valid logging facility" +allowed: echo auth authpriv cron daemon kern lpr mail mark news protocols \ + security syslog user uucp \ + local0 local1 local2 local3 local4 local5 local6 local7 all + val_help: all; All facilities excluding "mark" val_help: auth; Authentication and authorization diff --git a/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def b/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def index bae531af..888f3eff 100644 --- a/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def +++ b/templates/system/syslog/user/node.tag/facility/node.tag/level/node.def @@ -2,6 +2,7 @@ type: txt help: Logging level syntax:expression: $VAR(@) in "emerg", "alert", "crit", "err", "warning", "notice", "info", "debug"; "\"$VAR(@)\" is not a valid logging level" default: "err" +allowed: echo emerg alert crit err warning notice info debug val_help: emerg; Emergency messages val_help: alert; Urgent messages |