non-existing symlinks halt generate process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
In short, "netplan generate" halts/crashes on first non-existing symlink in /etc/netplan/.
What I'm trying to do is leverage netplan's ability to override configurations with "later" files. The idea was that I provide sensible defaults (ie. use dhcp) for some interfaces that can be overridden with location-specific custom configs (like a static IP) if necessary. These custom configs come via symlinks which point to either existing or non-existing files, but if the targets of the symlinks do not exist, netplan fails completely (nothing is configured).
I think it should silently (or with a warning) just ignore files which either do not exist or cannot be opened for whatever reason. This seems to be the standard behavior in most other software. Currently I am forced to create empty config files where the symlinks point to.