diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-09 19:23:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 19:23:46 +0200 |
commit | 3543aecf8463d5d6328ac669c12c482ed4e1ccba (patch) | |
tree | 040255ca61e096403f322b2f362e7ac8f8ff9d32 /src/conf_mode | |
parent | 36a60cd14733ca2695144b085d5b444c2e3625d3 (diff) | |
parent | ac0fedb7ac243947451e7263047a0f9e568c643a (diff) | |
download | vyos-1x-3543aecf8463d5d6328ac669c12c482ed4e1ccba.tar.gz vyos-1x-3543aecf8463d5d6328ac669c12c482ed4e1ccba.zip |
Merge pull request #1986 from sever-sever/T5213
T5213: Add accounting-interim-interval option for PPPoE IPoE SSTP
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/service_pppoe-server.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index 600ba4e92..adeefaa37 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2018-2022 VyOS maintainers and contributors +# Copyright (C) 2018-2023 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -71,8 +71,9 @@ def verify(pppoe): # local ippool and gateway settings config checks if not (dict_search('client_ip_pool.subnet', pppoe) or + (dict_search('client_ip_pool.name', pppoe) or (dict_search('client_ip_pool.start', pppoe) and - dict_search('client_ip_pool.stop', pppoe))): + dict_search('client_ip_pool.stop', pppoe)))): print('Warning: No PPPoE client pool defined') if dict_search('authentication.radius.dynamic_author.server', pppoe): |