diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-06 11:58:51 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-06 11:58:51 +0000 |
commit | 39f6be1dcb9e28d8f768efe779273d75f6637a5d (patch) | |
tree | 06ae239d5bdb85b0a07caf87756aa567a28e9b28 /data | |
parent | 248e77aad6ca2ab663112240790bf38f48def1fb (diff) | |
download | vyos-1x-39f6be1dcb9e28d8f768efe779273d75f6637a5d.tar.gz vyos-1x-39f6be1dcb9e28d8f768efe779273d75f6637a5d.zip |
T5056: Fix IPoE server template for vlan-mon
After rewriting IPoE server for config.dict the ipoe.config.j2
template wasn't changed for 'vlan-mon' section
Fix it
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/accel-ppp/ipoe.config.j2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/accel-ppp/ipoe.config.j2 b/data/templates/accel-ppp/ipoe.config.j2 index 99227ea33..179f2277b 100644 --- a/data/templates/accel-ppp/ipoe.config.j2 +++ b/data/templates/accel-ppp/ipoe.config.j2 @@ -54,9 +54,9 @@ password=csid {% endif %} proxy-arp=1 -{% for interface in interfaces %} -{% if (interface.shared == '0') and (interface.vlan_mon) %} -vlan-mon={{ interface.name }},{{ interface.vlan_mon | join(',') }} +{% for iface, iface_options in interface.items() %} +{% if iface_options.network is vyos_defined('vlan') %} +vlan-mon={{ iface }},{{ iface_options.vlan | join(',') }} {% endif %} {% endfor %} |