From 75599e6ac5c8d02c731627aa780288850592afe8 Mon Sep 17 00:00:00 2001 From: yatin Date: Tue, 20 Feb 2018 10:27:32 +0530 Subject: [PATCH] Set mtu for linuxbridge driver Review https://review.openstack.org/#/c/540077/ setting requires global_physnet_mtu to be set lower than the underlying network's mtu. So in some cases, For example vm on ophenstack cloud by default has 1450 as mtu, so global_physnet_mtu for neutron deployed on these vm should be set to <= 1450. Change-Id: Ib305f0ecfd8402dfe16f84eda21928fd2e615280 --- manifests/neutron.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/neutron.pp b/manifests/neutron.pp index 1865be139..f47b6d566 100644 --- a/manifests/neutron.pp +++ b/manifests/neutron.pp @@ -126,6 +126,12 @@ class openstack_integration::neutron ( } $plugins_list = delete_undef_values(['router', 'metering', 'firewall', 'lbaasv2', 'qos', 'trunk', $bgpvpn_plugin, $l2gw_plugin]) + if $driver == 'linuxbridge' { + $global_physnet_mtu = '1450' + } else { + $global_physnet_mtu = undef + } + class { '::neutron': default_transport_url => os_transport_url({ 'transport' => $::openstack_integration::config::messaging_default_proto, @@ -153,6 +159,7 @@ class openstack_integration::neutron ( key_file => "/etc/neutron/ssl/private/${::fqdn}.pem", notification_topics => $notification_topics, notification_driver => 'messagingv2', + global_physnet_mtu => $global_physnet_mtu, } class { '::neutron::client': } class { '::neutron::keystone::authtoken':