From 861945045ca04b21e27ad31513b2ff929349ee2e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 24 Jul 2021 23:04:25 +0200 Subject: ipsec: T1210: move DHCP server configuration unter remote-access node As this is only related to remote-access, keeping it under "options" simply feels wrong. --- src/conf_mode/vpn_ipsec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/vpn_ipsec.py b/src/conf_mode/vpn_ipsec.py index f1c6b216b..123380827 100755 --- a/src/conf_mode/vpn_ipsec.py +++ b/src/conf_mode/vpn_ipsec.py @@ -269,7 +269,7 @@ def verify(ipsec): for pool in ra_conf['pool']: if pool == 'dhcp': - if dict_search('options.remote_access.dhcp.server', ipsec) == None: + if dict_search('remote_access.dhcp.server', ipsec) == None: raise ConfigError('IPSec DHCP server is not configured!') elif 'pool' not in ipsec['remote_access'] or pool not in ipsec['remote_access']['pool']: -- cgit v1.2.3