[network-manager-applet/jklimes/team: 3/5] libnm-gtk: recognize Team as a valid virtual device



commit 4f268c5717b514cf84d8b90ffdd99621cde17527
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]