Support explicitly excluding an interface from netplan's handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
In bug 1914784, it was requested that cloud-init provide a way of disabling the configuration of an interface: as our network configuration format is a subset of netplan's configuration format, we need to come to an agreement on how this should work on Ubuntu (and then we can implement it for the non-netplan backends in cloud-init).
Lukas described a workaround for that specific bug (in https:/
This, however, has a flaw: if network configuration is being authored (or generated) for systems which could boot with either NetworkManager or networkd (e.g. a cloud generating network config for launched instances, which could have any distro within) then it will only work for NM-enabled systems: on the other systems, the interfaces would explicitly _be_ managed by networkd. Lukas mentioned that networkd-specific configuration could (soon) be specified to have networkd keep the interface DOWN, but this seems a little round-about.
What I think we need is a configuration toggle that, regardless of network backend, will cause netplan to configure the system such that that interface is left alone for the operator of the system to do with as they wish.
An alternative might be a way to explicitly configure netplan's "default" behaviour: currently it defaults to "manage every interface" with NetworkManager, but "manage only the specified interfaces" with networkd. If there were a non-backend- specific configuration option which allowed a config author to express "only manage the interfaces specified in this config" which would be honoured on both NM and networkd systems.