Skip to content

device: delete software device when disconnecting device due to loss of carrier

Beniamino Galvani requested to merge bg/rh2156684-ignore-carrier-2 into main

Previous MR: !1651 (closed)

It's not well defined when we delete devices. In general, we delete devices when the connection goes down and NetworkManager created the device earlier.

Software devices like bond/bridge/team default to ignoring carrier. However, when configuring them to not ignore carrier ([device].ignore-carrier), they were not deleted when deactivating the devices.

This adjusts commit d0c2a24b ('device: do not remove software devices on initial disconnected (rh #1035814)'). Note that back then there was no check whether the device has an activation queued, so it behaved differently than.

follow up to !1608 (merged).

Merge request reports