summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c')
-rw-r--r--src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
index b6d7303845..ee96feea89 100644
--- a/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
+++ b/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c
@@ -5352,6 +5352,16 @@ connection_from_file_full (const char *filename,
}
}
+ if (nm_streq0 (type, TYPE_ETHERNET)) {
+ gs_free char *bond_options = NULL;
+
+ if (svGetValueStr (parsed, "BONDING_OPTS", &bond_options)) {
+ /* initscripts consider these as bond masters */
+ g_free (type);
+ type = g_strdup (TYPE_BOND);
+ }
+ }
+
if (svGetValueBoolean (parsed, "BONDING_MASTER", FALSE) &&
strcasecmp (type, TYPE_BOND)) {
g_set_error (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_INVALID_CONNECTION,