summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-11 06:48:06 +0100
committerGitHub <noreply@github.com>2024-01-11 06:48:06 +0100
commitd0145bfc824099cb17ad6dc2cc2f81cace4f430d (patch)
treea439f0baf9a2d2310d72b58688cf0c30ba93f9c5 /src/conf_mode
parentd0dcbfa475fae4817b0bc4d0718ecf65eae85270 (diff)
parentb588e0784626ca42bf0da84a766213bda725305e (diff)
downloadvyos-1x-d0145bfc824099cb17ad6dc2cc2f81cace4f430d.tar.gz
vyos-1x-d0145bfc824099cb17ad6dc2cc2f81cace4f430d.zip
Merge pull request #2789 from vyos/mergify/bp/sagitta/pr-2777
T5688: Changed 'range' to multi in 'client-ip-pool' for accell-ppp (backport #2777)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/vpn_l2tp.py2
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):