From 1b2b777227ed2645c68b5ab05931beafff9ccf5d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 21 Jul 2010 13:55:27 -0700 Subject: Add completion for text fields with limited values For all nodes that do 'syntax:expression: $VAR(@) in' add allowed tag to show possible values --- templates/system/syslog/global/facility/node.def | 3 +++ templates/system/syslog/global/facility/node.tag/level/node.def | 1 + 2 files changed, 4 insertions(+) (limited to 'templates/system/syslog/global/facility') 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 -- cgit v1.2.3