Merge pull request #35 from ifupdown-ng/feature/bsearch-parsing

interface config parser rewrite
This commit is contained in:
Ariadne Conill 2020-08-24 04:41:06 -06:00 committed by GitHub
commit 68021bc652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 256 additions and 153 deletions

View file

@ -141,6 +141,12 @@ lif_interface_use_executor(struct lif_interface *interface, const char *executor
if (lif_dict_add_once(&interface->vars, "use", exec_addon, (lif_dict_cmp_t) strcmp) == NULL)
free(exec_addon);
/* pass requires as compatibility env vars to appropriate executors (bridge, bond) */
if (!strcmp(executor, "bridge"))
interface->is_bridge = true;
else if (!strcmp(executor, "bond"))
interface->is_bond = true;
}
void