From 9df4b2ee8caa64093f27e9af212224b2a30e6047 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Mon, 27 Jul 2020 11:37:23 +0000 Subject: pppoe-server: T2067: Allow setting multiple service-names --- src/conf_mode/accel_pppoe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/conf_mode/accel_pppoe.py b/src/conf_mode/accel_pppoe.py index 1df873171..93d950b52 100755 --- a/src/conf_mode/accel_pppoe.py +++ b/src/conf_mode/accel_pppoe.py @@ -237,7 +237,7 @@ interface={{int}} {% endfor %} {% endif %} {% if svc_name %} -service-name={{svc_name}} +service-name={{svc_name|join(',')}} {% endif %} {% if pado_delay %} pado-delay={{pado_delay}} @@ -334,7 +334,7 @@ def get_config(): 'client_ipv6_pool' : {}, 'interface' : [], 'ppp_gw' : '', - 'svc_name' : '', + 'svc_name' : [], 'dns' : [], 'dnsv6' : [], 'wins' : [], @@ -350,7 +350,7 @@ def get_config(): if c.exists('access-concentrator'): config_data['concentrator'] = c.return_value('access-concentrator') if c.exists('service-name'): - config_data['svc_name'] = c.return_value('service-name') + config_data['svc_name'] = c.return_values('service-name') if c.exists('interface'): config_data['interface'] = c.return_values('interface') if c.exists('local-ip'): -- cgit v1.2.3