Fix dnsmasq_router usage

Change-Id: Ib9e371b6c9ec01de80c1c3b5c5c0267bf07e9c56
This commit is contained in:
Olivier Bourdon 2018-04-24 12:46:41 +02:00
parent 50c7edb9d8
commit 7a73fdc156
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 %}