Comment 6 for bug 1951653

Revision history for this message
Lukas Märdian (slyon) wrote :

I agree that the /usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf should be deleted from Ubuntu's network-manager package.

Especially, as it is being overwritten in any normal Ubuntu Desktop installation, using the following netplan YAML:
```
network:
  version: 2
  renderer: NetworkManager
```

If we use a global "renderer: NetworkManager" stanza (as is the default on Ubuntu Desktop, where NM is part of the default installation) netplan will create an empty file in /run/NetworkManager/conf.d/10-globally-managed-devices.conf, to override that file anyway.

But we should be aware that it could introduce a change of default behavior on Ubuntu server where network-manager is being installed additionally. But netplan generates /run/NetworkManager/conf.d/netplan.conf to specifically ignore devices that are not supposed to be handled by NM, so we should be fine there, too.

I've recently updated the allow- and deny-list logic in netplan to be more generic and instruct NetworkManager to ignore/manage devices based on specific udev rules. With this PR I'm also changing the 10-globally-managed-devices.conf logic to override Ubuntu's default anytime a NetworkManager interface is being defined in netplan YAML (not just if it's defined as the global renderer).

https://github.com/canonical/netplan/pull/276