Skip to content

Commit 1aa85fc

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Set MTU=1400 for GRE and VXLAN tenant networks"
2 parents 2ba9a16 + a2aea47 commit 1aa85fc

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

packstack/plugins/neutron_350.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,10 @@ def create_dhcp_manifests(config, messages):
845845
for host in network_hosts:
846846
config["CONFIG_NEUTRON_DHCP_HOST"] = host
847847
config['CONFIG_NEUTRON_DHCP_INTERFACE_DRIVER'] = get_if_driver(config)
848-
manifest_data = getManifestTemplate("neutron_dhcp.pp")
848+
if use_openvswitch_vxlan(config) or use_openvswitch_gre(config):
849+
manifest_data = getManifestTemplate("neutron_dhcp_mtu.pp")
850+
else:
851+
manifest_data = getManifestTemplate("neutron_dhcp.pp")
849852
manifest_file = "%s_neutron.pp" % (host,)
850853
# Firewall Rules for dhcp in
851854
fw_details = dict()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class { 'neutron::agents::dhcp':
2+
interface_driver => hiera('CONFIG_NEUTRON_DHCP_INTERFACE_DRIVER'),
3+
debug => hiera('CONFIG_DEBUG_MODE'),
4+
dnsmasq_config_file => '/etc/neutron/dnsmasq-neutron.conf',
5+
require => File['/etc/neutron/dnsmasq-neutron.conf'],
6+
}
7+
8+
file { '/etc/neutron/dnsmasq-neutron.conf':
9+
content => 'dhcp-option-force=26,1400',
10+
owner => 'root',
11+
group => 'neutron',
12+
mode => '0640',
13+
}
14+

0 commit comments

Comments
 (0)