ifupdown: skip over template interfaces at warning time instead of letting lif_lifecycle_run() fail

This commit is contained in:
Ariadne Conill 2020-09-23 11:52:22 -06:00
parent f224c04804
commit 243a9b92ce

View file

@ -97,7 +97,10 @@ bool
skip_interface(struct lif_interface *iface, const char *ifname) skip_interface(struct lif_interface *iface, const char *ifname)
{ {
if (iface->is_template) if (iface->is_template)
{
fprintf(stderr, "%s: cannot change state on %s (template interface)\n", argv0, ifname); fprintf(stderr, "%s: cannot change state on %s (template interface)\n", argv0, ifname);
return false;
}
if (exec_opts.force) if (exec_opts.force)
return false; return false;