interface: add inherit property when inheriting
This commit is contained in:
parent
6c7fa2919d
commit
6728d2febe
1 changed files with 2 additions and 0 deletions
|
@ -223,6 +223,8 @@ lif_interface_collection_inherit(struct lif_interface *interface, struct lif_dic
|
||||||
if (parent == NULL)
|
if (parent == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
lif_dict_add(&interface->vars, "inherit", strdup(ifname));
|
||||||
|
|
||||||
/* copy the variables */
|
/* copy the variables */
|
||||||
struct lif_node *iter;
|
struct lif_node *iter;
|
||||||
LIF_DICT_FOREACH(iter, &parent->vars)
|
LIF_DICT_FOREACH(iter, &parent->vars)
|
||||||
|
|
Loading…
Reference in a new issue