interface: always attach "use link" executor

This commit is contained in:
Ariadne Conill 2020-07-26 03:29:16 -06:00
parent 05e8f9bbb5
commit 52d2bad3b8
2 changed files with 6 additions and 0 deletions

View file

@ -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));
}

View file

@ -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