[network-manager-applet: 3/7] libnm-gtk: recognize Team as a valid virtual device
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet: 3/7] libnm-gtk: recognize Team as a valid virtual device
- Date: Mon, 7 Oct 2013 16:35:52 +0000 (UTC)
commit e2bf4cd95dc3cf5fffc85a8bdbab21b400eb377b
Author: Jiří Klimeš <jklimes redhat com>
Date: Wed Sep 4 13:34:05 2013 +0200
libnm-gtk: recognize Team as a valid virtual device
src/libnm-gtk/nm-ui-utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libnm-gtk/nm-ui-utils.c b/src/libnm-gtk/nm-ui-utils.c
index 4d28bae..69ede41 100644
--- a/src/libnm-gtk/nm-ui-utils.c
+++ b/src/libnm-gtk/nm-ui-utils.c
@@ -335,6 +335,8 @@ nma_utils_get_device_type_name (NMDevice *device)
return _("InfiniBand");
case NM_DEVICE_TYPE_BOND:
return _("Bond");
+ case NM_DEVICE_TYPE_TEAM:
+ return _("Team");
case NM_DEVICE_TYPE_BRIDGE:
return _("Bridge");
case NM_DEVICE_TYPE_VLAN:
@@ -353,6 +355,7 @@ get_device_type_name_with_iface (NMDevice *device)
switch (nm_device_get_device_type (device)) {
case NM_DEVICE_TYPE_BOND:
+ case NM_DEVICE_TYPE_TEAM:
case NM_DEVICE_TYPE_BRIDGE:
case NM_DEVICE_TYPE_VLAN:
return g_strdup_printf ("%s (%s)", type_name, nm_device_get_iface (device));
@@ -557,6 +560,8 @@ nma_utils_get_connection_device_name (NMConnection *connection)
if (!strcmp (type, NM_SETTING_BOND_SETTING_NAME))
display_type = _("Bond");
+ else if (!strcmp (type, NM_SETTING_TEAM_SETTING_NAME))
+ display_type = _("Team");
else if (!strcmp (type, NM_SETTING_BRIDGE_SETTING_NAME))
display_type = _("Bridge");
else if (!strcmp (type, NM_SETTING_VLAN_SETTING_NAME))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]