From 0050995b640a397bcf8296466b125bab3978125d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 4 Nov 2020 11:16:47 -0700 Subject: [PATCH] config-file: add support for auto_executor_selection setting --- libifupdown/config-file.c | 2 ++ libifupdown/config-file.h | 1 + 2 files changed, 3 insertions(+) diff --git a/libifupdown/config-file.c b/libifupdown/config-file.c index e5c79ff..2f98f72 100644 --- a/libifupdown/config-file.c +++ b/libifupdown/config-file.c @@ -21,6 +21,7 @@ struct lif_config_file lif_config = { .allow_addon_scripts = true, .allow_any_iface_as_template = true, + .auto_executor_selection = true, .compat_create_interfaces = true, .compat_ifupdown2_bridge_ports_inherit_vlans = true, .implicit_template_conversion = true, @@ -49,6 +50,7 @@ set_bool_value(const char *key, const char *value, void *opaque) static struct lif_config_handler handlers[] = { {"allow_addon_scripts", set_bool_value, &lif_config.allow_addon_scripts}, {"allow_any_iface_as_template", set_bool_value, &lif_config.allow_any_iface_as_template}, + {"auto_executor_selection", set_bool_value, &lif_config.auto_executor_selection}, {"compat_create_interfaces", set_bool_value, &lif_config.compat_create_interfaces}, {"compat_ifupdown2_bridge_ports_inherit_vlans", set_bool_value, &lif_config.compat_ifupdown2_bridge_ports_inherit_vlans}, {"implicit_template_conversion", set_bool_value, &lif_config.implicit_template_conversion}, diff --git a/libifupdown/config-file.h b/libifupdown/config-file.h index 4364f5b..25bd269 100644 --- a/libifupdown/config-file.h +++ b/libifupdown/config-file.h @@ -21,6 +21,7 @@ struct lif_config_file { bool allow_addon_scripts; bool allow_any_iface_as_template; + bool auto_executor_selection; bool compat_create_interfaces; bool compat_ifupdown2_bridge_ports_inherit_vlans; bool implicit_template_conversion;