diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-10 19:59:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 19:59:20 +0100 |
commit | aebb458262072457c6a3840d1b17031fbd780eca (patch) | |
tree | b89f9b47d85bc00c758bd2388574270d20858079 /src/conf_mode | |
parent | e890527d730053ed73227180c77d9dbbb9393ce0 (diff) | |
parent | 4ffec67d04670192d9b722353cbaef04cb0ba129 (diff) | |
download | vyos-1x-aebb458262072457c6a3840d1b17031fbd780eca.tar.gz vyos-1x-aebb458262072457c6a3840d1b17031fbd780eca.zip |
Merge pull request #2777 from aapostoliuk/T5688-multirange
T5688: Changed 'range' to multi in 'client-ip-pool' for accell-ppp
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/vpn_l2tp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vpn_l2tp.py b/src/conf_mode/vpn_l2tp.py index 03a27d3cd..1a91951b4 100755 --- a/src/conf_mode/vpn_l2tp.py +++ b/src/conf_mode/vpn_l2tp.py @@ -71,7 +71,7 @@ def verify(l2tp): raise ConfigError('DA/CoE server key required!') if dict_search('authentication.mode', l2tp) in ['local', 'noauth']: - if not l2tp['client_ip_pool'] and not l2tp['client_ipv6_pool']: + if not dict_search('client_ip_pool', l2tp) and not dict_search('client_ipv6_pool', l2tp): raise ConfigError( "L2TP local auth mode requires local client-ip-pool or client-ipv6-pool to be configured!") if dict_search('client_ip_pool', l2tp) and not dict_search('default_pool', l2tp): |