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:
@@ -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;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user