summaryrefslogtreecommitdiff
path: root/cloudinit/net/netplan.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/net/netplan.py')
-rw-r--r--cloudinit/net/netplan.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/net/netplan.py b/cloudinit/net/netplan.py
index 56b41be4..9b71de97 100644
--- a/cloudinit/net/netplan.py
+++ b/cloudinit/net/netplan.py
@@ -345,7 +345,9 @@ class Renderer(renderer.Renderer):
'id': ifcfg.get('vlan_id'),
'link': ifcfg.get('vlan-raw-device')
}
-
+ macaddr = ifcfg.get('mac_address', None)
+ if macaddr is not None:
+ vlan['macaddress'] = macaddr.lower()
_extract_addresses(ifcfg, vlan)
vlans.update({ifname: vlan})