diff options
author | Stanislav Makar <stas.makar@gmail.com> | 2019-07-15 20:12:31 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-07-15 20:12:31 +0000 |
commit | e5f542132568a8da63823f478cea52bfb28ac655 (patch) | |
tree | 7e35fc813dc2a7972f51a9f16e773f379aa512fb /cloudinit/net | |
parent | 217c89369c3b16f11333f0090e059f76fc5d7937 (diff) | |
download | vyos-cloud-init-e5f542132568a8da63823f478cea52bfb28ac655.tar.gz vyos-cloud-init-e5f542132568a8da63823f478cea52bfb28ac655.zip |
net: skip bond interfaces in get_interfaces
bonds may inherit mac address from a physical interface
LP: #1812857
Diffstat (limited to 'cloudinit/net')
-rw-r--r-- | cloudinit/net/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |