From e4e75aacac93f320a20ad367bdfc8aa2c21596ef Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 3 Oct 2020 11:48:36 +0200 Subject: pppoe-server: T2956: make use of defaultValue list feature --- data/templates/accel-ppp/pppoe.config.tmpl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'data/templates/accel-ppp/pppoe.config.tmpl') diff --git a/data/templates/accel-ppp/pppoe.config.tmpl b/data/templates/accel-ppp/pppoe.config.tmpl index d0331f4e2..acc7df0a2 100644 --- a/data/templates/accel-ppp/pppoe.config.tmpl +++ b/data/templates/accel-ppp/pppoe.config.tmpl @@ -11,8 +11,15 @@ ipv6_nd ipv6_dhcp {% endif %} {% for protocol in authentication.protocols %} -{{ protocol }} -{% endfor%} +{# this should be fixed in the CLI by a migrator #} +{% if protocol == 'chap' %} +auth_chap_md5 +{% elif protocol == 'mschap' %} +auth_mschap_v1 +{% else %} +auth_{{ protocol.replace('-', '_') }} +{% endif %} +{% endfor %} shaper {% if snmp is defined %} net-snmp -- cgit v1.2.3