diff options
author | Chad Smith <chad.smith@canonical.com> | 2023-03-23 06:08:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 13:08:12 +0100 |
commit | ceb66d4552e6c4c0da60cb08fdf208fb90c34660 (patch) | |
tree | c2d0df7b06d46bbc9da60e1144b62f3009be561d /cloudinit | |
parent | 055395d38a4ec0cc87b005e93110e6d06419f43d (diff) | |
download | cloud-init-git-ceb66d4552e6c4c0da60cb08fdf208fb90c34660.tar.gz |
macs: ignore duplicate MAC for devs with driver driver qmi_wwan (#2090)
Another physical modem which has duplicate MAC addresses.
Cloud-init needs to ignore the subordinate devices which are
associated with the qmi_wwan driver.
Fixes network rendering for the following modems:
Quectel EG25
Quectel RM510Q-GLHA
Sierra Wireless MC7455
LP: #2008888
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/net/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py index 65d45edf..46bce184 100644 --- a/cloudinit/net/__init__.py +++ b/cloudinit/net/__init__.py @@ -1044,7 +1044,7 @@ def get_interfaces_by_mac_on_linux(blacklist_drivers=None) -> dict: # cloud-init happens to enumerate network interfaces before drivers # have fully initialized the leader/subordinate relationships for # those devices or switches. - if driver == "mscc_felix" or driver == "fsl_enetc": + if driver in ("fsl_enetc", "mscc_felix", "qmi_wwan"): LOG.debug( "Ignoring duplicate macs from '%s' and '%s' due to " "driver '%s'.", |