Actually, it seems to be working if the "NetworkManager" renderer is being used, as NM is cleaning up after itself, but systemd-networkd is not: https://github.com/systemd/systemd/issues/6600
In the DBus API Config/Set/Try/Apply case, we could probably store the old netplan state somewhere and make 'netplan apply' aware of it, so that it can calculate the delta and clean up after systemd-networkd.
Actually, it seems to be working if the "NetworkManager" renderer is being used, as NM is cleaning up after itself, but systemd-networkd is not: https:/ /github. com/systemd/ systemd/ issues/ 6600
In the DBus API Config/ Set/Try/ Apply case, we could probably store the old netplan state somewhere and make 'netplan apply' aware of it, so that it can calculate the delta and clean up after systemd-networkd.