Skip to content

Commit

Permalink
Merge pull request #38 from LucasBoisserie/add-disabled-default-dhcp-…
Browse files Browse the repository at this point in the history
…options

Authorize empty value for dhcp-option to disabled it
  • Loading branch information
mrlesmithjr authored Jun 14, 2021
2 parents 5c5532d + a8e84cd commit 5addf44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/etc/dnsmasq.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ dhcp-host={{ item['mac_address']|join(',') }}{% if item['name'] is defined %},{{
{% endif %}
{% if dnsmasq_dhcp_options is defined and dnsmasq_dhcp_options != [] %}
{% for item in dnsmasq_dhcp_options %}
dhcp-option=option:{{ item['option'] }},{{ item['value']|join(',') }}
dhcp-option=option:{{ item['option'] }}{% if item['value'] is defined %},{{ item['value']|join(',') }}{% endif %}

{% endfor %}
{% endif %}
{% if dnsmasq_dhcp_scopes is defined and dnsmasq_dhcp_scopes != [] %}
Expand Down

0 comments on commit 5addf44

Please sign in to comment.