summaryrefslogtreecommitdiff
path: root/src/conf_mode/service_pppoe-server.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-09 19:23:46 +0200
committerGitHub <noreply@github.com>2023-05-09 19:23:46 +0200
commit3543aecf8463d5d6328ac669c12c482ed4e1ccba (patch)
tree040255ca61e096403f322b2f362e7ac8f8ff9d32 /src/conf_mode/service_pppoe-server.py
parent36a60cd14733ca2695144b085d5b444c2e3625d3 (diff)
parentac0fedb7ac243947451e7263047a0f9e568c643a (diff)
downloadvyos-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/service_pppoe-server.py')
-rwxr-xr-xsrc/conf_mode/service_pppoe-server.py5
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):