summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-12-20 16:52:16 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2024-12-20 16:52:16 +0000
commit8f61e4293945ea895385a29f8bd387cde9f98806 (patch)
tree8eb6de468836dcab7981953e0d06d4d3416d710b /data/templates
parentff13d4d288e09564553458098890bb4345c5d0cf (diff)
downloadvyos-1x-8f61e4293945ea895385a29f8bd387cde9f98806.tar.gz
vyos-1x-8f61e4293945ea895385a29f8bd387cde9f98806.zip
T6936: PPPoE-server add option combined to interface
Add option 'combined', it allows to listen to PPP requests on both VLANs and the base parent interface (wihtout tag) Before it was impossible to do it from our CLI set service pppoe-server interface eth1 combined set service pppoe-server interface eth1 vlan '10-122'
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/pppoe.config.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.j2 b/data/templates/accel-ppp/pppoe.config.j2
index cf952c687..2c4871a6b 100644
--- a/data/templates/accel-ppp/pppoe.config.j2
+++ b/data/templates/accel-ppp/pppoe.config.j2
@@ -61,6 +61,9 @@ interface={{ iface }}
{% for vlan in iface_config.vlan %}
interface=re:^{{ iface }}\.{{ vlan | range_to_regex }}$
{% endfor %}
+{% if iface_config.combined is vyos_defined %}
+interface={{ iface }}
+{% endif %}
{% if iface_config.vlan_mon is vyos_defined %}
vlan-mon={{ iface }},{{ iface_config.vlan | join(',') }}
{% endif %}