summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-09 15:22:59 +0100
committerGitHub <noreply@github.com>2023-03-09 15:22:59 +0100
commit3c6e20b3bb54d7efb001e7578629b0d4275bbc36 (patch)
treeeee208e5582a868973e3ae0ce5340fef3d833da0 /data/templates
parent80f51ba0bb9df97f1fe1df5b6f7ff3345f62dca9 (diff)
parent7310b1bf6553361b165c174336ab8e6a762ff0ef (diff)
downloadvyos-1x-3c6e20b3bb54d7efb001e7578629b0d4275bbc36.tar.gz
vyos-1x-3c6e20b3bb54d7efb001e7578629b0d4275bbc36.zip
Merge pull request #1877 from sever-sever/T5073
T5073: IPoE-server fix parse empty range option
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/ipoe.config.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/ipoe.config.j2 b/data/templates/accel-ppp/ipoe.config.j2
index 2a2367b69..27621bc9b 100644
--- a/data/templates/accel-ppp/ipoe.config.j2
+++ b/data/templates/accel-ppp/ipoe.config.j2
@@ -35,7 +35,8 @@ verbose=1
{% elif iface_config.network is vyos_defined('vlan') %}
{% set shared = 'shared=0,' %}
{% endif %}
-{{ tmp }},{{ shared }}mode={{ iface_config.mode | upper }},ifcfg=1,range={{ iface_config.client_subnet }},start=dhcpv4,ipv6=1
+{% set range = 'range=' ~ iface_config.client_subnet ~ ',' if iface_config.client_subnet is vyos_defined else '' %}
+{{ tmp }},{{ shared }}mode={{ iface_config.mode | upper }},ifcfg=1,{{ range }}start=dhcpv4,ipv6=1
{% if iface_config.vlan is vyos_defined %}
vlan-mon={{ iface }},{{ iface_config.vlan | join(',') }}
{% endif %}