diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-09-27 16:06:52 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-10-10 12:52:54 +0000 |
commit | b9de775a5b4f017f9d164a127d93f55ce9053756 (patch) | |
tree | 115f41fe28929be7c3a6a06c3bb9a0608e65ee8a /src/conf_mode/ssh.py | |
parent | 53bd9fe11e449c66656fef9cb72084d5d0800a75 (diff) | |
download | vyos-1x-b9de775a5b4f017f9d164a127d93f55ce9053756.tar.gz vyos-1x-b9de775a5b4f017f9d164a127d93f55ce9053756.zip |
ssh: T4716: Ablity to configure RekeyLimit data and time
Ability to configure SSH RekeyLimit data (in Megabytes) and
time (in Minutes)
set service ssh rekey data 1024
set service ssh rekey time 60
Diffstat (limited to 'src/conf_mode/ssh.py')
-rwxr-xr-x | src/conf_mode/ssh.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/ssh.py b/src/conf_mode/ssh.py index 2bbd7142a..8746cc701 100755 --- a/src/conf_mode/ssh.py +++ b/src/conf_mode/ssh.py @@ -73,6 +73,9 @@ def verify(ssh): if not ssh: return None + if 'rekey' in ssh and 'data' not in ssh['rekey']: + raise ConfigError(f'Rekey data is required!') + verify_vrf(ssh) return None |