summaryrefslogtreecommitdiff
path: root/data/templates/l2tp/l2tp.config.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-10 23:22:17 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-11 11:25:13 +0200
commit762d36d5b71d600e5f286a4f06c806a2e016ae7a (patch)
treeffc6b79219b7571a0ede87f95ed1feb62e417fc9 /data/templates/l2tp/l2tp.config.tmpl
parent53932650928688188aa8a5b122293165959f426f (diff)
downloadvyos-1x-762d36d5b71d600e5f286a4f06c806a2e016ae7a.tar.gz
vyos-1x-762d36d5b71d600e5f286a4f06c806a2e016ae7a.zip
vpn: l2tp: T2264: migrate to new dictionary keys for local auth
Diffstat (limited to 'data/templates/l2tp/l2tp.config.tmpl')
-rw-r--r--data/templates/l2tp/l2tp.config.tmpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/data/templates/l2tp/l2tp.config.tmpl b/data/templates/l2tp/l2tp.config.tmpl
index 7e15233bb..cce526dd8 100644
--- a/data/templates/l2tp/l2tp.config.tmpl
+++ b/data/templates/l2tp/l2tp.config.tmpl
@@ -3,12 +3,14 @@
log_syslog
l2tp
chap-secrets
-{% for proto in authentication['auth_proto']: %}
+{% for proto in auth_proto: %}
{{proto}}
{% endfor%}
-{% if authentication['mode'] == 'radius' %}
+
+{% if auth_mode == 'radius' %}
radius
{% endif -%}
+
ippool
shaper
ipv6pool
@@ -74,7 +76,7 @@ secret={{lns_shared_secret}}
gw-ip-address={{gateway_address}}
{% endif %}
-{% if authentication['mode'] == 'local' %}
+{% if auth_mode == 'local' %}
[chap-secrets]
chap-secrets=/etc/accel-ppp/l2tp/chap-secrets
{% if gateway_address %}
@@ -106,7 +108,7 @@ ccp=0
ipv6=allow
{% endif %}
-{% if authentication['mode'] == 'radius' %}
+{% if auth_mode == 'radius' %}
[radius]
{% for rsrv in authentication['radiussrv']: %}
server={{rsrv}},{{authentication['radiussrv'][rsrv]['secret']}},\