Merge "Add option to disabled default gateway on bifrost"
This commit is contained in:
commit
cfc64db8ec
@ -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:
|
||||
|
||||
|
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user