From bb7f0106264091ea4e0753f2a5c1276e9020045c Mon Sep 17 00:00:00 2001 From: Eduardo Otubo Date: Wed, 19 Feb 2020 13:32:55 +0100 Subject: [PATCH 2/3] net: skip bond interfaces in get_interfaces RH-Author: Eduardo Otubo Message-id: <20200219133256.9544-2-otubo@redhat.com> Patchwork-id: 93936 O-Subject: [RHEL-7.9 cloud-init PATCHv2 1/2] net: skip bond interfaces in get_interfaces Bugzilla: 1768770 RH-Acked-by: Mohammed Gamal RH-Acked-by: Vitaly Kuznetsov commit e5f542132568a8da63823f478cea52bfb28ac655 Author: Stanislav Makar Date: Mon Jul 15 20:12:31 2019 +0000 net: skip bond interfaces in get_interfaces bonds may inherit mac address from a physical interface LP: #1812857 Signed-off-by: Eduardo Otubo Signed-off-by: Miroslav Rezanina --- cloudinit/net/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 1.8.3.1