diff --git a/templates/icehouse/dhcp_agent.ini b/templates/icehouse/dhcp_agent.ini index fea5d285..b82e6bc1 100644 --- a/templates/icehouse/dhcp_agent.ini +++ b/templates/icehouse/dhcp_agent.ini @@ -10,7 +10,7 @@ interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf -{% if dnsmasq_flags -%} +{% if instance_mtu or dnsmasq_flags -%} dnsmasq_config_file = /etc/neutron/dnsmasq.conf {% endif -%} diff --git a/templates/mitaka/dhcp_agent.ini b/templates/mitaka/dhcp_agent.ini index 43324b7f..4f70313a 100644 --- a/templates/mitaka/dhcp_agent.ini +++ b/templates/mitaka/dhcp_agent.ini @@ -11,7 +11,7 @@ interface_driver = openvswitch dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf -{% if dnsmasq_flags -%} +{% if instance_mtu or dnsmasq_flags -%} dnsmasq_config_file = /etc/neutron/dnsmasq.conf {% endif -%} diff --git a/templates/ocata/dhcp_agent.ini b/templates/ocata/dhcp_agent.ini index bb3de51d..7b3dd490 100644 --- a/templates/ocata/dhcp_agent.ini +++ b/templates/ocata/dhcp_agent.ini @@ -11,7 +11,7 @@ interface_driver = openvswitch dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf -{% if dnsmasq_flags -%} +{% if instance_mtu or dnsmasq_flags -%} dnsmasq_config_file = /etc/neutron/dnsmasq.conf {% endif -%}