Merge "Add option to disabled default gateway on bifrost"

This commit is contained in:
Jenkins 2016-02-14 21:43:44 +00:00 committed by Gerrit Code Review
commit cfc64db8ec
2 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,7 @@ dhcp_lease_time: 12h
dhcp_static_mask: 255.255.255.0
# Dnsmasq default route for clients. If not defined, dnsmasq will push to clients
# as default route the same IP of the dnsmasq server.
# If set to false, it will disable default route creation in clients.
# Default: undefined
# dnsmasq_router:

View File

@ -75,8 +75,12 @@ 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 %}
dhcp-option=3,{{dnsmasq_router}}
{% endif %}
{% endif %}
{% if dnsmasq_dns_servers is defined %}
dhcp-option=6,{{dnsmasq_dns_servers}}