From 485df2827322ff2801ead31a33bdbb37d37354d6 Mon Sep 17 00:00:00 2001 From: Jan Vaclav Date: Mon, 20 May 2024 14:04:18 +0200 Subject: [PATCH] nmtui: include veth devices in activation dialog (cherry picked from commit e74f506b81595112893997f08cbad8482e7777aa) --- src/libnm-core-impl/nm-connection.c | 2 ++ src/nmtui/nmt-connect-connection-list.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/libnm-core-impl/nm-connection.c b/src/libnm-core-impl/nm-connection.c index 95fe89a87c..6dace2b73c 100644 --- a/src/libnm-core-impl/nm-connection.c +++ b/src/libnm-core-impl/nm-connection.c @@ -3258,6 +3258,8 @@ nm_connection_get_virtual_device_description(NMConnection *connection) display_type = _("WireGuard"); else if (nm_streq(type, NM_SETTING_TUN_SETTING_NAME)) display_type = _("TUN/TAP"); + else if (nm_streq(type, NM_SETTING_VETH_SETTING_NAME)) + display_type = _("Veth"); if (!iface || !display_type) return NULL; diff --git a/src/nmtui/nmt-connect-connection-list.c b/src/nmtui/nmt-connect-connection-list.c index 70264d3ec2..1fd44b2957 100644 --- a/src/nmtui/nmt-connect-connection-list.c +++ b/src/nmtui/nmt-connect-connection-list.c @@ -96,6 +96,7 @@ static const char *device_sort_order[] = {"NMDeviceEthernet", "NMDeviceInfiniband", "NMDeviceWifi", NM_SETTING_VLAN_SETTING_NAME, + NM_SETTING_VETH_SETTING_NAME, NM_SETTING_BOND_SETTING_NAME, NM_SETTING_TEAM_SETTING_NAME, NM_SETTING_BRIDGE_SETTING_NAME,