summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-07 19:05:00 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-07 19:05:00 +0200
commitd0261c4daf31bd7fc05643e86660caee9f0442c5 (patch)
treed5e7c32ca4bfcfe73ca530b0c282ea1d39470fba /interface-definitions
parent380a0d23cee65b6b71560763a34748cba71523e6 (diff)
downloadvyos-1x-d0261c4daf31bd7fc05643e86660caee9f0442c5.tar.gz
vyos-1x-d0261c4daf31bd7fc05643e86660caee9f0442c5.zip
ssh: T2691: bugfix loglevel config migration
When migrating the conf from VyOS 1.2 to 1.3 a configuration error could appear if the user specified "info" as loglevel instead of "INFO". There was no input validation done in 1.2 but this is now enforced in 1.3. In VyOS 1.3 loglevel will be always lowercase on the CLI and when migrating the config this is transformed. Also VyOS 1.2 accpeted any arbitrary loglevel. If an invalid loglevel is found it will be set to info.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/ssh.xml.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/interface-definitions/ssh.xml.in b/interface-definitions/ssh.xml.in
index 1b20f5776..d253c2f34 100644
--- a/interface-definitions/ssh.xml.in
+++ b/interface-definitions/ssh.xml.in
@@ -132,30 +132,30 @@
<properties>
<help>Log level</help>
<completionHelp>
- <list>QUIET FATAL ERROR INFO VERBOSE</list>
+ <list>quiet fatal error info verbose</list>
</completionHelp>
<valueHelp>
- <format>QUIET</format>
+ <format>quiet</format>
<description>stay silent</description>
</valueHelp>
<valueHelp>
- <format>FATAL</format>
+ <format>fatal</format>
<description>log fatals only</description>
</valueHelp>
<valueHelp>
- <format>ERROR</format>
+ <format>error</format>
<description>log errors and fatals only</description>
</valueHelp>
<valueHelp>
- <format>INFO</format>
+ <format>info</format>
<description>default log level</description>
</valueHelp>
<valueHelp>
- <format>VERBOSE</format>
+ <format>verbose</format>
<description>enable logging of failed login attempts</description>
</valueHelp>
<constraint>
- <regex>^(QUIET|FATAL|ERROR|INFO|VERBOSE)$</regex>
+ <regex>^(quiet|fatal|error|info|verbose)$</regex>
</constraint>
</properties>
<defaultValue>INFO</defaultValue>