diff options
author | Thomas Haller <thaller@redhat.com> | 2016-02-23 17:40:54 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-02-23 23:15:37 +0100 |
commit | 1b00009169254d0a8fc9c2da1ccd99a716d2715f (patch) | |
tree | b622e9dfe46413ee749853639832ab5d854cc652 /libnm | |
parent | 26718e989ecd31d179e5ae2406a52acb49a73dd5 (diff) | |
download | NetworkManager-1b00009169254d0a8fc9c2da1ccd99a716d2715f.tar.gz |
device: add new NMDeviceType NM_DEVICE_TYPE_VETH
Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
Diffstat (limited to 'libnm')
-rw-r--r-- | libnm/nm-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 80ae55efa0..53f42f82b2 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -341,6 +341,7 @@ static GType _nm_device_gtype_from_dtype (NMDeviceType dtype) { switch (dtype) { + case NM_DEVICE_TYPE_VETH: case NM_DEVICE_TYPE_ETHERNET: return NM_TYPE_DEVICE_ETHERNET; case NM_DEVICE_TYPE_WIFI: @@ -1827,6 +1828,8 @@ get_type_name (NMDevice *device) return _("IPTunnel"); case NM_DEVICE_TYPE_TUN: return _("Tun"); + case NM_DEVICE_TYPE_VETH: + return _("Veth"); case NM_DEVICE_TYPE_GENERIC: case NM_DEVICE_TYPE_UNUSED1: case NM_DEVICE_TYPE_UNUSED2: |