non-existing symlinks halt generate process

Bug #1788360 reported by Teemu Karimerto
10
This bug affects 2 people
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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.