diff --git a/config.yaml b/config.yaml index b26759a5..4a80eda3 100644 --- a/config.yaml +++ b/config.yaml @@ -48,6 +48,11 @@ options: type: string default: ext_net description: Name of the external network for floating IP addresses provided by Neutron. + network-device-mtu: + type: int + default: 1500 + description: | + The MTU size for the interfaces managed by neutron. neutron-plugin: default: ovs type: string diff --git a/hooks/neutron_api_hooks.py b/hooks/neutron_api_hooks.py index 8e3cc5ab..ef16e5e4 100755 --- a/hooks/neutron_api_hooks.py +++ b/hooks/neutron_api_hooks.py @@ -278,6 +278,7 @@ def neutron_plugin_api_relation_joined(rid=None): 'neutron-security-groups': config('neutron-security-groups'), 'l2-population': get_l2population(), 'overlay-network-type': get_overlay_network_type(), + 'network-device-mtu': config('network-device-mtu'), } relation_set(relation_id=rid, **relation_data) diff --git a/unit_tests/test_neutron_api_hooks.py b/unit_tests/test_neutron_api_hooks.py index 747d66a0..11477cd2 100644 --- a/unit_tests/test_neutron_api_hooks.py +++ b/unit_tests/test_neutron_api_hooks.py @@ -276,6 +276,7 @@ class NeutronAPIHooksTests(CharmTestCase): 'neutron-security-groups': False, 'l2-population': False, 'overlay-network-type': 'vxlan', + 'network-device-mtu': 1500, } self.get_l2population.return_value = False self.get_overlay_network_type.return_value = 'vxlan'