ifupdown: complain to the user if they try to bring up or tear down a template interface

This commit is contained in:
Ariadne Conill 2020-09-23 11:42:09 -06:00
parent 580f054d7e
commit f9683c2242

View file

@ -96,6 +96,9 @@ acquire_state_lock(const char *state_path, const char *lifname)
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);
if (exec_opts.force)
return false;