From d0261c4daf31bd7fc05643e86660caee9f0442c5 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 7 Jul 2020 19:05:00 +0200 Subject: 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. --- interface-definitions/ssh.xml.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'interface-definitions/ssh.xml.in') 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 @@ Log level - QUIET FATAL ERROR INFO VERBOSE + quiet fatal error info verbose - QUIET + quiet stay silent - FATAL + fatal log fatals only - ERROR + error log errors and fatals only - INFO + info default log level - VERBOSE + verbose enable logging of failed login attempts - ^(QUIET|FATAL|ERROR|INFO|VERBOSE)$ + ^(quiet|fatal|error|info|verbose)$ INFO -- cgit v1.2.3