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 %}