exit: sort permitted VLANs on bridge interfaces

This commit is contained in:
Timotej Lazar 2025-11-06 16:22:28 +01:00
parent 69754962c5
commit 41ea3314c9

View file

@ -43,7 +43,7 @@ iface {{ iface.name }}
{% if iface.mode.value == 'access' and iface.untagged_vlan %}
bridge-access {{ iface.untagged_vlan.vid }}
{% elif iface.mode.value == 'tagged' and iface.tagged_vlans %}
bridge-vids {{ iface.tagged_vlans | map(attribute='vid') | join(' ') }}
bridge-vids {{ iface.tagged_vlans | map(attribute='vid') | sort | join(' ') }}
{% endif %}
{% endif %}