diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-03 11:48:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-03 11:48:36 +0200 |
commit | e4e75aacac93f320a20ad367bdfc8aa2c21596ef (patch) | |
tree | 243ae998cf4458c2e12a75a35657a4e4be639bc7 /data | |
parent | 2123eef951467ea2e69ec2ad3f68e0282f84414e (diff) | |
download | vyos-1x-e4e75aacac93f320a20ad367bdfc8aa2c21596ef.tar.gz vyos-1x-e4e75aacac93f320a20ad367bdfc8aa2c21596ef.zip |
pppoe-server: T2956: make use of defaultValue list feature
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/accel-ppp/pppoe.config.tmpl | 11 |
1 files changed, 9 insertions, 2 deletions
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 |