interface: auto interfaces are always explicit
This commit is contained in:
parent
9bcf914250
commit
b201f351ec
2 changed files with 4 additions and 0 deletions
|
@ -172,6 +172,9 @@ handle_auto(struct lif_interface_file_parse_state *state, char *token, char *buf
|
||||||
if (!state->cur_iface->is_template)
|
if (!state->cur_iface->is_template)
|
||||||
state->cur_iface->is_auto = true;
|
state->cur_iface->is_auto = true;
|
||||||
|
|
||||||
|
if (state->cur_iface->is_auto)
|
||||||
|
state->cur_iface->is_explicit = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,7 @@ lif_interface_collection_init(struct lif_dict *collection)
|
||||||
/* always enable loopback interface as part of a collection */
|
/* always enable loopback interface as part of a collection */
|
||||||
if_lo = lif_interface_collection_find(collection, "lo");
|
if_lo = lif_interface_collection_find(collection, "lo");
|
||||||
if_lo->is_auto = true;
|
if_lo->is_auto = true;
|
||||||
|
if_lo->is_explicit = true;
|
||||||
lif_interface_use_executor(if_lo, "loopback");
|
lif_interface_use_executor(if_lo, "loopback");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue