diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-03 13:53:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-03 13:53:59 +0200 |
commit | 237a9bedbcb22adb38ccdc1db3e2a42f3db5987b (patch) | |
tree | b371c6f325fe1d71833633030e813769dda30e56 /src | |
parent | e4e75aacac93f320a20ad367bdfc8aa2c21596ef (diff) | |
download | vyos-1x-237a9bedbcb22adb38ccdc1db3e2a42f3db5987b.tar.gz vyos-1x-237a9bedbcb22adb38ccdc1db3e2a42f3db5987b.zip |
pppoe-server: T2936: move v4/v6 nameserver lists out of for loop
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/service_pppoe-server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index 65a7f93b0..b43e76f6d 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) |