From b9de775a5b4f017f9d164a127d93f55ce9053756 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 27 Sep 2022 16:06:52 +0000 Subject: 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 --- src/conf_mode/ssh.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf_mode') 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 -- cgit v1.2.3