interface: make interface-to-template conversion a config option (defaulting to enabled)
This commit is contained in:
parent
243a9b92ce
commit
60d0ed34b8
4 changed files with 13 additions and 2 deletions
|
|
@ -243,8 +243,9 @@ lif_interface_collection_inherit(struct lif_interface *interface, struct lif_dic
|
|||
if (!lif_config.allow_any_iface_as_template && !parent->is_template)
|
||||
return false;
|
||||
|
||||
/* explicitly convert any interface we are inheriting from into a template */
|
||||
parent->is_template = true;
|
||||
/* maybe convert any interface we are inheriting from into a template */
|
||||
if (lif_config.implicit_template_conversion)
|
||||
parent->is_template = true;
|
||||
|
||||
lif_dict_add(&interface->vars, "inherit", strdup(ifname));
|
||||
interface->is_bond = parent->is_bond;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue