diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-23 17:28:53 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-23 23:15:37 +0100 |
commit | 26718e989ecd31d179e5ae2406a52acb49a73dd5 (patch) | |
tree | 64623f138544065eeee1eeb19a5a7ef0f33dc0bd /libnm-glib | |
parent | a1eb5eba303dea77524c9b890de805cf247f5f34 (diff) | |
download | NetworkManager-26718e989ecd31d179e5ae2406a52acb49a73dd5.tar.gz |
libnm: add missing device types to get_type_name()
Diffstat (limited to 'libnm-glib')
-rw-r--r-- | libnm-glib/nm-device.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libnm-glib/nm-device.c b/libnm-glib/nm-device.c index 377784b82d..a16278a092 100644 --- a/libnm-glib/nm-device.c +++ b/libnm-glib/nm-device.c @@ -1868,9 +1868,21 @@ get_type_name (NMDevice *device) return _("VLAN"); case NM_DEVICE_TYPE_ADSL: return _("ADSL"); - default: - return _("Unknown"); + case NM_DEVICE_TYPE_MACVLAN: + return _("MACVLAN"); + case NM_DEVICE_TYPE_VXLAN: + return _("VXLAN"); + case NM_DEVICE_TYPE_IP_TUNNEL: + return _("IPTunnel"); + case NM_DEVICE_TYPE_TUN: + return _("Tun"); + case NM_DEVICE_TYPE_GENERIC: + case NM_DEVICE_TYPE_UNUSED1: + case NM_DEVICE_TYPE_UNUSED2: + case NM_DEVICE_TYPE_UNKNOWN: + break; } + return _("Unknown"); } static char * |