diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-02-16 12:11:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 12:11:34 +0000 |
commit | 1f7d9af565a892ee533ed34f1458d966bbdc1cb5 (patch) | |
tree | 73ec263d8e49fe7983096664f4afb91caa660b4f /python | |
parent | bf99fd11225413565ff04d95df441247ac4a02df (diff) | |
parent | 6b0565c76324ef2a86f472b4e02a7223f39aa049 (diff) | |
download | vyos-1x-1f7d9af565a892ee533ed34f1458d966bbdc1cb5.tar.gz vyos-1x-1f7d9af565a892ee533ed34f1458d966bbdc1cb5.zip |
Merge pull request #1824 from sever-sever/T4971-eq
T4971: Accel-ppp verify if client_ip_pool key exists in config
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configverify.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 47cf218ee..0085ad5e4 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -361,11 +361,12 @@ def verify_accel_ppp_base_service(config): if 'gateway_address' in config: gateway = True else: - if dict_search_recursive(config, 'gateway_address', ['client_ip_pool', 'name']): - for _, v in config['client_ip_pool']['name'].items(): - if 'gateway_address' in v: - gateway = True - break + if 'client_ip_pool' in config: + if dict_search_recursive(config, 'gateway_address', ['client_ip_pool', 'name']): + for _, v in config['client_ip_pool']['name'].items(): + if 'gateway_address' in v: + gateway = True + break if not gateway: raise ConfigError('Server requires gateway-address to be configured!') |