You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Ubuntu Focal (20.04) netplan config using network.managed #62219
When using the network.managed state on Ubuntu Focal (20.04) version in order to configure/update an interface its edit the interfaces file instead of the netplan files.
It causes an unexpected behavior when restarting (applying) the netplan service like:
If that true and you are not going to update the network.managed status deprecate it or at least add a warning that it outdated.
The function should still work on non-netplan/networkd minions on G@os_family:Debianand (BusyBox based?) distributions like Alpine which use /etc/network/interfaces, too (see "Configuring Networking" on wiki.alpinelinux), after you've changed if os_family == "Debian" to if os_family in ["Debian", "Alpine"].
"Should" as I still have to test a bit also how to decide when to switch to a netplan based configuration so I don't have to bother with networkd (directly).
Activity
OrangeDog commentedon Jun 27, 2022
Related: #54791 and #57541
I suggest using
file.serializedinstead of the very outdatednetwork.managed, along with acmd.run:AmiramMaimon commentedon Jul 4, 2022
If that true and you are not going to update the
network.managedstatus deprecate it or at least add a warning that it outdated.jlkaiser commentedon Aug 3, 2022
Yes, exactly what AmiramMaimon said. Too many rabbit holes before finally getting here.
Grayfoox commentedon Aug 10, 2022
this error is still present and not mentioned in documentation
gluf-technik commentedon May 11, 2023
The function should still work on non-netplan/
networkdminions onG@os_family:Debianand (BusyBox based?) distributions like Alpine which use/etc/network/interfaces, too (see "Configuring Networking" on wiki.alpinelinux), after you've changedif os_family == "Debian"toif os_family in ["Debian", "Alpine"]."Should" as I still have to test a bit also how to decide when to switch to a netplan based configuration so I don't have to bother with
networkd(directly).ggiesen commentedon Jul 1, 2026
I've submitted a PR for an implementation if anyone interested would like to test.
Add netplan provider for network.managed (fixes #62219) (#69615)