For NetworkManager, implement some routing attributes and matching interfaces by glob pattern.
One problem is, that certain of these features require a recent enough NetworkManager. Otherwise, NetworkManager will ignore the setting or fail to load it. I don't think that general problem is solved (nor do I see it solved for networkd).
Don't fail if same primary slave was set before (LP: #1817651) (#136)
The netplan parser might run multiple passes, if unknown interfaces/netdefs are detected during a prior pass. In that case it would fail to set a bond's primary slave, because it was set before (to the same interface).
Call daemon-reload after we touched systemd unit files (LP: #1874494) (#135)
When running netplan apply systemd unit files might be created/deleted/changed on disk. We need to run systemctl daemon-reload, to make systemd aware of those new units and calculate the new unit/service dependencies. Otherwise it will throw warnings at us:
ubuntu@ubuntu:~$ sudo netplan apply
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlan0.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Warning: The unit file, source configuration file or drop-ins of netplan-wpa-wlan0.service changed on disk. Run 'systemctl daemon-reload' to reload units.