Re: [patch NetworkManager] ifcfg-rh writer: do not se TYPE for team ports
- From: Jiri Pirko <jiri resnulli us>
- To: Dan Williams <dcbw redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: [patch NetworkManager] ifcfg-rh writer: do not se TYPE for team ports
- Date: Mon, 10 Mar 2014 19:19:55 +0100
Mon, Mar 10, 2014 at 07:11:01PM CET, dcbw redhat com wrote:
On Sat, 2014-03-08 at 12:48 +0100, Jiri Pirko wrote:
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);
}
}
Looks good. This is being followed in Red Hat bug 1074160 and the
jk/rh1074160-team-port branch, FWIW.
Cheers Dan. Just note that the follow-up read patch is needed as well.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]