summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-23 18:52:17 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-23 18:53:43 +0200
commit1d7f88b459da6224086ce1386964a238e08179ca (patch)
treeee16e93a4a761c9169382040d66f51574fe4c15f /interface-definitions
parent48ee777481e4dedf645c6b618ce94597bbcd20d4 (diff)
downloadvyos-1x-1d7f88b459da6224086ce1386964a238e08179ca.tar.gz
vyos-1x-1d7f88b459da6224086ce1386964a238e08179ca.zip
ssh: T2635: migrate to get_config_dict()
Jinja template contains some workarounds like {% if port is string %}, this depends of the resolution of https://phabricator.vyos.net/T2636
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/ssh.xml.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/interface-definitions/ssh.xml.in b/interface-definitions/ssh.xml.in
index 4adfaecfb..1b20f5776 100644
--- a/interface-definitions/ssh.xml.in
+++ b/interface-definitions/ssh.xml.in
@@ -131,6 +131,9 @@
<leafNode name="loglevel">
<properties>
<help>Log level</help>
+ <completionHelp>
+ <list>QUIET FATAL ERROR INFO VERBOSE</list>
+ </completionHelp>
<valueHelp>
<format>QUIET</format>
<description>stay silent</description>
@@ -151,6 +154,9 @@
<format>VERBOSE</format>
<description>enable logging of failed login attempts</description>
</valueHelp>
+ <constraint>
+ <regex>^(QUIET|FATAL|ERROR|INFO|VERBOSE)$</regex>
+ </constraint>
</properties>
<defaultValue>INFO</defaultValue>
</leafNode>
@@ -179,10 +185,15 @@
<validator name="numeric" argument="--range 1-65535"/>
</constraint>
</properties>
+ <defaultValue>22</defaultValue>
</leafNode>
<leafNode name="client-keepalive-interval">
<properties>
- <help>how often send keep alives in seconds</help>
+ <help>Enable transmission of keepalives from server to client</help>
+ <valueHelp>
+ <format>1-65535</format>
+ <description>Time interval in seconds for keepalive message</description>
+ </valueHelp>
<constraint>
<validator name="numeric" argument="--range 1-65535"/>
</constraint>