summaryrefslogtreecommitdiff
path: root/data/templates/l2tp/l2tp.config.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-11 00:48:09 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-11 11:25:59 +0200
commit2928a338dee759d8635b87fc96abe090ebad80e5 (patch)
treebb891b1667bc5acc827b45de15b6c903d29759d2 /data/templates/l2tp/l2tp.config.tmpl
parent20da27d779ad0d0c9bb78a0f661bc580abcf208e (diff)
downloadvyos-1x-2928a338dee759d8635b87fc96abe090ebad80e5.tar.gz
vyos-1x-2928a338dee759d8635b87fc96abe090ebad80e5.zip
vpn: l2tp: T2264: proper set PPP default values to ease Jinja2 template
Diffstat (limited to 'data/templates/l2tp/l2tp.config.tmpl')
-rw-r--r--data/templates/l2tp/l2tp.config.tmpl16
1 files changed, 3 insertions, 13 deletions
diff --git a/data/templates/l2tp/l2tp.config.tmpl b/data/templates/l2tp/l2tp.config.tmpl
index 6ebbf1241..f4746a6a1 100644
--- a/data/templates/l2tp/l2tp.config.tmpl
+++ b/data/templates/l2tp/l2tp.config.tmpl
@@ -105,19 +105,9 @@ bind={{ radius_source_address }}
verbose=1
check-ip=1
single-session=replace
-{% if idle_timeout %}
-lcp-echo-timeout={{idle_timeout}}
-{% endif %}
-{% if ppp_options['lcp-echo-interval'] %}
-lcp-echo-interval={{ppp_options['lcp-echo-interval']}}
-{% else %}
-lcp-echo-interval=30
-{% endif %}
-{% if ppp_options['lcp-echo-failure'] %}
-lcp-echo-failure={{ppp_options['lcp-echo-failure']}}
-{% else %}
-lcp-echo-failure=3
-{% endif %}
+lcp-echo-timeout={{ ppp_echo_timeout }}
+lcp-echo-interval={{ ppp_echo_interval }}
+lcp-echo-failure={{ ppp_echo_failure }}
{% if ccp_disable %}
ccp=0
{% endif %}