Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cloudinit/net/network_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down
Loading