summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-06-09 19:49:17 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-06-09 19:49:17 +0000
commit0a31cc181878b92db6de552ed68fd02fd5b4e905 (patch)
tree02378cf129d5391461012627eb19c35bae8675eb /data/templates
parent957a542fb0446668f264f898628f687ca0fc1cd6 (diff)
downloadvyos-1x-0a31cc181878b92db6de552ed68fd02fd5b4e905.tar.gz
vyos-1x-0a31cc181878b92db6de552ed68fd02fd5b4e905.zip
pppoe-server: T2575: Add missing gw-ip-address
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/pppoe.config.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.tmpl b/data/templates/accel-ppp/pppoe.config.tmpl
index aa9254e61..6c4ff89b1 100644
--- a/data/templates/accel-ppp/pppoe.config.tmpl
+++ b/data/templates/accel-ppp/pppoe.config.tmpl
@@ -88,7 +88,6 @@ wins{{ loop.index }}={{ server }}
{% if auth_mode == 'local' %}
[chap-secrets]
-gw-ip-address={{ ppp_gw }}
chap-secrets={{ chap_secrets_file }}
{% elif auth_mode == 'radius' %}
[radius]
@@ -116,6 +115,9 @@ bind={{ radius_source_address }}
dae-server={{ radius_dynamic_author.server }}:{{ radius_dynamic_author.port }},{{ radius_dynamic_author.key }}
{% endif -%}
{% endif %}
+{% if ppp_gw %}
+gw-ip-address={{ ppp_gw }}
+{% endif %}
{% if sesscrtl != 'disable' %}
[common]