summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/service_pppoe-server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py
index 65a7f93b0..8ed8c6812 100755
--- a/src/conf_mode/service_pppoe-server.py
+++ b/src/conf_mode/service_pppoe-server.py
@@ -67,9 +67,9 @@ def get_config(config=None):
# configured in a different way in the configuration, this is why we split
# the configuration
if 'name_server' in pppoe:
+ ns_v4 = []
+ ns_v6 = []
for ns in pppoe['name_server']:
- ns_v4 = []
- ns_v6 = []
if is_ipv4(ns): ns_v4.append(ns)
else: ns_v6.append(ns)
@@ -134,7 +134,7 @@ def verify(pppoe):
'can be configured')
if 'name_server_ipv6' in pppoe:
- if len(pppoe['name_server_ipv6']) > 2:
+ if len(pppoe['name_server_ipv6']) > 3:
raise ConfigError('Not more then three IPv6 DNS name-servers ' \
'can be configured')