dnsmasq: sort ranges by network name

This commit is contained in:
Timotej Lazar 2024-10-21 15:35:32 +02:00
parent 2bf2eb73a7
commit 21df85e97a

View file

@ -1,4 +1,4 @@
{% for prefix in prefixes | selectattr('custom_fields.dhcp_server') %}
{% for prefix in prefixes | selectattr('custom_fields.dhcp_server') | sort(attribute='vlan.name') %}
{% if prefix.custom_fields.dhcp_server.address | ipaddr('address') == primary_ip4 %}
# {{ prefix.vlan.name }}
{% for range in prefix.custom_fields.dhcp_ranges | default([], true) %}