nmtui: fix listing veth devices on nmtui

When activating a connection using nmtui, veth connections where not
being listed. This patches fixes this and they are now being listed.

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
Fernando Fernandez Mancera
2020-12-17 11:59:23 +01:00
parent 2fa8ef9fb9
commit cf89e428af
2 changed files with 9 additions and 0 deletions

View File

@@ -132,6 +132,14 @@ nm_editor_utils_get_connection_type_list(void)
item->id_format = _("Ethernet connection %d");
g_ptr_array_add(array, item);
item = g_new0(NMEditorConnectionTypeDataReal, 1);
item->data.name = _("Veth");
item->data.setting_type = NM_TYPE_SETTING_VETH;
item->data.device_type = NM_TYPE_DEVICE_VETH;
item->data.virtual = TRUE;
item->id_format = _("Veth connection %d");
g_ptr_array_add(array, item);
item = g_new0(NMEditorConnectionTypeDataReal, 1);
item->data.name = _("Wi-Fi");
item->data.setting_type = NM_TYPE_SETTING_WIRELESS;

View File

@@ -92,6 +92,7 @@ nmt_connect_device_free(NmtConnectDevice *nmtdev)
}
static const char *device_sort_order[] = {"NMDeviceEthernet",
"NMDeviceVeth",
"NMDeviceInfiniband",
"NMDeviceWifi",
NM_SETTING_VLAN_SETTING_NAME,