cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #05923
[Merge] ~smakar/cloud-init:bond0_issue into cloud-init:master
Stanislav Makar has proposed merging ~smakar/cloud-init:bond0_issue into cloud-init:master.
Commit message:
Skip bond interfaces by get_interfaces
Usually bonds inherit mac address from one of
physical interface
Requested reviews:
cloud-init commiters (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~smakar/cloud-init/+git/cloud-init/+merge/362105
--
Your team cloud-init commiters is requested to review the proposed merge of ~smakar/cloud-init:bond0_issue into cloud-init:master.
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index 3642fb1..e758006 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -622,6 +622,8 @@ def get_interfaces():
continue
if is_vlan(name):
continue
+ if is_bond(name):
+ continue
mac = get_interface_mac(name)
# some devices may not have a mac (tun0)
if not mac: