diff --git a/cloudinit/net/network_manager.py b/cloudinit/net/network_manager.py index d4c705f2726..2fb2e65f852 100644 --- a/cloudinit/net/network_manager.py +++ b/cloudinit/net/network_manager.py @@ -519,6 +519,13 @@ def render_interface(self, iface, network_state, renderer): if "ethernet" not in self.config: self.config["ethernet"] = {} self.config["ethernet"]["mtu"] = str(ipv4_mtu) + if if_type == "bond": + if iface.get("mac_address") is not None: + if not self.config.has_section("ethernet"): + self.config["ethernet"] = {} + self.config["ethernet"]["cloned-mac-address"] = self.mac_addr( + iface["mac_address"] + ) if if_type == "bridge": # Bridge is ass-backwards compared to bond for port in iface["bridge_ports"]: