ifupdown: skip over template interfaces at warning time instead of letting lif_lifecycle_run() fail
This commit is contained in:
parent
f224c04804
commit
243a9b92ce
1 changed files with 3 additions and 0 deletions
|
@ -97,7 +97,10 @@ bool
|
|||
skip_interface(struct lif_interface *iface, const char *ifname)
|
||||
{
|
||||
if (iface->is_template)
|
||||
{
|
||||
fprintf(stderr, "%s: cannot change state on %s (template interface)\n", argv0, ifname);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (exec_opts.force)
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue