interface: always attach "use link" executor
This commit is contained in:
parent
05e8f9bbb5
commit
52d2bad3b8
2 changed files with 6 additions and 0 deletions
|
@ -114,7 +114,12 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename)
|
||||||
else if (!strcmp(executor, "bond"))
|
else if (!strcmp(executor, "bond"))
|
||||||
cur_iface->is_bond = true;
|
cur_iface->is_bond = true;
|
||||||
else if (!strcmp(executor, "static"))
|
else if (!strcmp(executor, "static"))
|
||||||
|
{
|
||||||
cur_iface->is_static = true;
|
cur_iface->is_static = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else if (!strcmp(executor, "link"))
|
||||||
|
continue;
|
||||||
|
|
||||||
lif_dict_add(&cur_iface->vars, token, strdup(executor));
|
lif_dict_add(&cur_iface->vars, token, strdup(executor));
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ lif_interface_init(struct lif_interface *interface, const char *ifname)
|
||||||
memset(interface, '\0', sizeof *interface);
|
memset(interface, '\0', sizeof *interface);
|
||||||
|
|
||||||
interface->ifname = strdup(ifname);
|
interface->ifname = strdup(ifname);
|
||||||
|
lif_dict_add(&interface->vars, "use", strdup("link"));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in a new issue