From 41ea3314c97248546f86d8fbc5d5b7b094336266 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 6 Nov 2025 16:22:28 +0100 Subject: [PATCH] exit: sort permitted VLANs on bridge interfaces --- roles/fabric/templates/switch.intf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/fabric/templates/switch.intf.j2 b/roles/fabric/templates/switch.intf.j2 index b3bc185..eaf638a 100644 --- a/roles/fabric/templates/switch.intf.j2 +++ b/roles/fabric/templates/switch.intf.j2 @@ -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 %}