[patch NetworkManager] ifcfg-rh writer: do not se TYPE for team ports



The problem is that initscripts rewrite DEVICETYPE in case TYPE is specified
which prevents team port from being configured. Fix this by removing TYPE.

Signed-off-by: Jiri Pirko <jiri resnulli us>

diff --git a/src/settings/plugins/ifcfg-rh/writer.c b/src/settings/plugins/ifcfg-rh/writer.c
index baa851a..b687bee 100644
--- a/src/settings/plugins/ifcfg-rh/writer.c
+++ b/src/settings/plugins/ifcfg-rh/writer.c
@@ -1742,6 +1742,7 @@ write_connection_setting (NMSettingConnection *s_con, shvarFile *ifcfg)
                else if (nm_setting_connection_is_slave_type (s_con, NM_SETTING_TEAM_SETTING_NAME)) {
                        svSetValue (ifcfg, "TEAM_MASTER", master, FALSE);
                        svSetValue (ifcfg, "DEVICETYPE", TYPE_TEAM_PORT, FALSE);
+                       svSetValue (ifcfg, "TYPE", NULL, FALSE);
                }
        }
 
-- 
1.8.5.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]