cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #04975
[Merge] ~chad.smith/cloud-init:bug/17746666-netplan-mtu-on-bonds into cloud-init:master
Chad Smith has proposed merging ~chad.smith/cloud-init:bug/17746666-netplan-mtu-on-bonds into cloud-init:master.
Commit message:
netplan: render bond mtu if provided by network config
LP: #1774666
Requested reviews:
cloud-init commiters (cloud-init-dev)
Related bugs:
Bug #1774666 in cloud-init: "Bond interfaces stuck at 1500 MTU on Bionic"
https://bugs.launchpad.net/cloud-init/+bug/1774666
For more details, see:
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/347559
--
Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:bug/17746666-netplan-mtu-on-bonds into cloud-init:master.
diff --git a/cloudinit/net/netplan.py b/cloudinit/net/netplan.py
index 6344348..54431b9 100644
--- a/cloudinit/net/netplan.py
+++ b/cloudinit/net/netplan.py
@@ -289,6 +289,8 @@ class Renderer(renderer.Renderer):
if slave_interfaces == 'none':
_extract_bond_slaves_by_name(interfaces, bond, ifname)
_extract_addresses(ifcfg, bond)
+ if 'mtu' in ifcfg:
+ bond['mtu'] = ifcfg.get('mtu')
bonds.update({ifname: bond})
elif if_type == 'bridge':
References