interface: auto interfaces are always explicit

This commit is contained in:
Ariadne Conill 2020-10-21 08:09:21 -06:00
parent 9bcf914250
commit b201f351ec
2 changed files with 4 additions and 0 deletions

View file

@ -172,6 +172,9 @@ handle_auto(struct lif_interface_file_parse_state *state, char *token, char *buf
if (!state->cur_iface->is_template)
state->cur_iface->is_auto = true;
if (state->cur_iface->is_auto)
state->cur_iface->is_explicit = true;
return true;
}

View file

@ -223,6 +223,7 @@ lif_interface_collection_init(struct lif_dict *collection)
/* always enable loopback interface as part of a collection */
if_lo = lif_interface_collection_find(collection, "lo");
if_lo->is_auto = true;
if_lo->is_explicit = true;
lif_interface_use_executor(if_lo, "loopback");
}