From 6728d2febe46961c75b0520081966ecf77879987 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 4 Aug 2020 11:48:22 -0600 Subject: [PATCH] interface: add inherit property when inheriting --- libifupdown/interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libifupdown/interface.c b/libifupdown/interface.c index 8eab120..3dca25a 100644 --- a/libifupdown/interface.c +++ b/libifupdown/interface.c @@ -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)