summaryrefslogtreecommitdiff
path: root/interface-definitions/system-login.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-09-27 11:32:42 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-09-28 13:21:18 +0000
commitee2dc735e02930ac46c6ccc96dc5486ab96179e5 (patch)
tree129263100c11e8cd35b87c403311203329887cd0 /interface-definitions/system-login.xml.in
parent5fe0e9c163ee2f8229e298fc20dbfe6746c2cdcc (diff)
downloadvyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.tar.gz
vyos-1x-ee2dc735e02930ac46c6ccc96dc5486ab96179e5.zip
login: T4715: Auto logout user after inactivity
Ability to terminate interactive sessions (TTY/PTS) after a period of inactivity. set system login timeout '300'
Diffstat (limited to 'interface-definitions/system-login.xml.in')
-rw-r--r--interface-definitions/system-login.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in
index 24eeee355..d189be3f8 100644
--- a/interface-definitions/system-login.xml.in
+++ b/interface-definitions/system-login.xml.in
@@ -151,6 +151,19 @@
#include <include/interface/vrf.xml.i>
</children>
</node>
+ <leafNode name="timeout">
+ <properties>
+ <help>Session timeout</help>
+ <valueHelp>
+ <format>u32:5-604800</format>
+ <description>Session timeout in seconds</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 5-604800"/>
+ </constraint>
+ <constraintErrorMessage>Timeout must be between 5 and 604800 seconds</constraintErrorMessage>
+ </properties>
+ </leafNode>
</children>
</node>
</children>