interface: add inherit property when inheriting

This commit is contained in:
Ariadne Conill 2020-08-04 11:48:22 -06:00
parent 6c7fa2919d
commit 6728d2febe

View file

@ -223,6 +223,8 @@ lif_interface_collection_inherit(struct lif_interface *interface, struct lif_dic
if (parent == NULL)
return false;
lif_dict_add(&interface->vars, "inherit", strdup(ifname));
/* copy the variables */
struct lif_node *iter;
LIF_DICT_FOREACH(iter, &parent->vars)