ifupdown: complain to the user if they try to bring up or tear down a template interface
This commit is contained in:
parent
580f054d7e
commit
f9683c2242
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue