Merge "Fix dnsmasq_router usage"

This commit is contained in:
Zuul 2018-04-25 10:50:21 +00:00 committed by Gerrit Code Review
commit b3b36e2a99
1 changed files with 4 additions and 4 deletions

View File

@ -71,11 +71,11 @@ dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
# Override the default route supplied by dnsmasq, which assumes the
# router is the same machine as the one running dnsmasq.
{% if dnsmasq_router is defined %}
{% if dnsmasq_router | bool == false %}
dhcp-option=3
{% else %}
{% if not (dnsmasq_router | default(True) | bool) %}
{% if dnsmasq_router | ipaddr %}
dhcp-option=3,{{dnsmasq_router}}
{% else %}
dhcp-option=3
{% endif %}
{% endif %}