Unbound+dhcp: fix template, enforce list when querying pools

This commit is contained in:
Ad Schellevis 2021-09-21 11:11:43 +02:00
parent 3fc136b7bd
commit 42e80e1c3a

View File

@ -9,7 +9,7 @@ domain={{dhcpd.domain}}
{% endif%}
{% if 'pool' in dhcpd %}
{% for pool in dhcpd.pool %}
{% for pool in helpers.toList('dhcpd.'+interface+'.pool') %}
{% if 'range' in pool and (pool.domain|default('') != '' or dhcpd.domain|default('') != '') %}
[range_{{interface}}_pool_{{loop.index}}]
start={{pool.range.from}}