diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2025-05-19 14:46:53 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2025-05-21 10:30:57 +0300 |
| commit | 923c7f07cc123a79d9c940aa53bcb063da5da943 (patch) | |
| tree | d932afbbb4cde13c89204fb423993bcf6539d1e9 | |
| parent | 1268ebb05e909027ecf1b9b4af4a6282d944efa7 (diff) | |
| download | vyos-1x-923c7f07cc123a79d9c940aa53bcb063da5da943.tar.gz vyos-1x-923c7f07cc123a79d9c940aa53bcb063da5da943.zip | |
ipoe_server: T6997: Do not require to create client ip pool when dhcp-relay is used
| -rw-r--r-- | python/vyos/accel_ppp_util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/accel_ppp_util.py b/python/vyos/accel_ppp_util.py index ae75e6654..49c0e3ede 100644 --- a/python/vyos/accel_ppp_util.py +++ b/python/vyos/accel_ppp_util.py @@ -221,10 +221,12 @@ def verify_accel_ppp_ip_pool(vpn_config): for interface, interface_config in vpn_config['interface'].items(): if dict_search('client_subnet', interface_config): break + if dict_search('external_dhcp.dhcp_relay', interface_config): + break else: raise ConfigError( 'Local auth and noauth mode requires local client-ip-pool \ - or client-ipv6-pool or client-subnet to be configured!') + or client-ipv6-pool or client-subnet or dhcp-relay to be configured!') else: raise ConfigError( "Local auth mode requires local client-ip-pool \ |
