From 52d2bad3b82e9c9cba2c6ee50ed9c1d3cb2e1d18 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 26 Jul 2020 03:29:16 -0600 Subject: [PATCH] interface: always attach "use link" executor --- libifupdown/interface-file.c | 5 +++++ libifupdown/interface.c | 1 + 2 files changed, 6 insertions(+) diff --git a/libifupdown/interface-file.c b/libifupdown/interface-file.c index 5b28227..e8dd906 100644 --- a/libifupdown/interface-file.c +++ b/libifupdown/interface-file.c @@ -114,7 +114,12 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename) else if (!strcmp(executor, "bond")) cur_iface->is_bond = true; else if (!strcmp(executor, "static")) + { cur_iface->is_static = true; + continue; + } + else if (!strcmp(executor, "link")) + continue; lif_dict_add(&cur_iface->vars, token, strdup(executor)); } diff --git a/libifupdown/interface.c b/libifupdown/interface.c index fa149ed..87f6c97 100644 --- a/libifupdown/interface.c +++ b/libifupdown/interface.c @@ -62,6 +62,7 @@ lif_interface_init(struct lif_interface *interface, const char *ifname) memset(interface, '\0', sizeof *interface); interface->ifname = strdup(ifname); + lif_dict_add(&interface->vars, "use", strdup("link")); } bool