dnsmasq: read reservations (also) from local context

Some questionable QoL improvement.
This commit is contained in:
Timotej Lazar 2025-11-12 11:52:11 +01:00 committed by Gašper Fele-Žorž
parent 07143b28f2
commit 1dcb6ca6b7

View file

@ -18,3 +18,8 @@ dhcp-host = {{ interface.mac_address | lower }},{{ address.address | ipaddr('add
{% endif %}
{% endfor %}
# custom reservations
{% for reservation in reservations | default([]) %}
dhcp-host = {{ reservation.mac | lower }},{{ reservation.ip | ipaddr('address') }},{{ reservation.host | lower }}
{% endfor %}