From dbb92fb42d016b46124a183df1c9dc437430874c Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 16 Jan 2018 17:53:04 +0000 Subject: [PATCH] Pass MTU configuration to seed VM's configdrive This ensures that the seed VM honours any MTU configuration following its initial provisioning. --- ansible/filter_plugins/networks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/filter_plugins/networks.py b/ansible/filter_plugins/networks.py index b2f2f3019..3c5d03f1a 100644 --- a/ansible/filter_plugins/networks.py +++ b/ansible/filter_plugins/networks.py @@ -390,12 +390,14 @@ def net_configdrive_network_device(context, name, inventory_hostname=None): netmask = net_mask(context, name, inventory_hostname) gateway = net_gateway(context, name, inventory_hostname) bootproto = 'static' if ip is not None else 'dhcp' + mtu = net_mtu(context, name, inventory_hostname) interface = { 'device': device, 'address': ip, 'netmask': netmask, 'gateway': gateway, 'bootproto': bootproto, + 'mtu': mtu, } interface = {k: v for k, v in interface.items() if v is not None} return interface