mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 11:40:32 +01:00
ifcfg-rh: ignore team connections until we support team devices (rh #968268)
https://fedorahosted.org/libteam/ team connections are marked by DEVICETYPE="Team" or DEVICETYPE="TeamPort"
This commit is contained in:
parent
0477becfae
commit
5875e17769
2 changed files with 23 additions and 1 deletions
|
|
@ -47,6 +47,8 @@
|
|||
#define TYPE_BRIDGE "Bridge"
|
||||
#define TYPE_BOND "Bond"
|
||||
#define TYPE_VLAN "Vlan"
|
||||
#define TYPE_TEAM "Team"
|
||||
#define TYPE_TEAM_PORT "TeamPort"
|
||||
|
||||
#define SECRET_FLAG_AGENT "user"
|
||||
#define SECRET_FLAG_NOT_SAVED "ask"
|
||||
|
|
|
|||
|
|
@ -4184,7 +4184,7 @@ connection_from_file (const char *filename,
|
|||
{
|
||||
NMConnection *connection = NULL;
|
||||
shvarFile *parsed;
|
||||
char *type, *nmc = NULL, *bootproto;
|
||||
char *type, *devtype, *nmc = NULL, *bootproto;
|
||||
NMSetting *s_ip4, *s_ip6, *s_port;
|
||||
const char *ifcfg_name = NULL;
|
||||
gboolean nm_controlled = TRUE;
|
||||
|
|
@ -4222,6 +4222,26 @@ connection_from_file (const char *filename,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Ignore Team connections for now; we don't support team yet.
|
||||
* https://fedorahosted.org/libteam/
|
||||
*/
|
||||
devtype = svGetValue (parsed, "DEVICETYPE", FALSE);
|
||||
if (devtype) {
|
||||
if ( !strcasecmp (devtype, TYPE_TEAM)
|
||||
|| !strcasecmp (devtype, TYPE_TEAM_PORT)) {
|
||||
char *base_name = g_path_get_basename (filename);
|
||||
g_set_error (&error, IFCFG_PLUGIN_ERROR, 0,
|
||||
"Ignoring team (DEVICETYPE=\"%s\") connection '%s'; teaming is not supported yet",
|
||||
devtype,
|
||||
base_name);
|
||||
g_free (base_name);
|
||||
g_free (devtype);
|
||||
goto done;
|
||||
}
|
||||
g_free (devtype);
|
||||
}
|
||||
|
||||
type = svGetValue (parsed, "TYPE", FALSE);
|
||||
if (!type) {
|
||||
char *device;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue