nmtui: include veth devices in activation dialog

This commit is contained in:
Jan Vaclav 2024-05-20 14:04:18 +02:00 committed by Íñigo Huguet
parent 187ff4c73b
commit e74f506b81
2 changed files with 3 additions and 0 deletions

View file

@ -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;

View file

@ -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,