From e5f542132568a8da63823f478cea52bfb28ac655 Mon Sep 17 00:00:00 2001 From: Stanislav Makar Date: Mon, 15 Jul 2019 20:12:31 +0000 Subject: net: skip bond interfaces in get_interfaces bonds may inherit mac address from a physical interface LP: #1812857 --- cloudinit/net/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index 3642fb1f..e758006f 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: -- cgit v1.2.3