From 8f82fa83cecdc9160444d9a55aaa332fb9a1cbc1 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 15 Mar 2016 20:07:45 +0100 Subject: [PATCH] ethernet: set the connection type when generating the connection Otherwise the connection wouldn't verify: [1458066126.2270] device (eth10): Generated connection does not verify: connection.type: property type should be set to '802-3-ethernet' [1458066126.2271] manager: (eth10): can't assume; no connection (cherry picked from commit 4b71939e9ac3df93bfe72af0eac42b4ebaf94e15) --- src/devices/nm-device-ethernet.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c index 11356d46e9..6225ae7bf6 100644 --- a/src/devices/nm-device-ethernet.c +++ b/src/devices/nm-device-ethernet.c @@ -1499,6 +1499,11 @@ update_connection (NMDevice *device, NMConnection *connection) nm_connection_add_setting (connection, (NMSetting *) s_wired); } + g_object_set (nm_connection_get_setting_connection (connection), + NM_SETTING_CONNECTION_TYPE, nm_connection_get_setting_pppoe (connection) + ? NM_SETTING_PPPOE_SETTING_NAME + : NM_SETTING_WIRED_SETTING_NAME, NULL); + /* If the device reports a permanent address, use that for the MAC address * and the current MAC, if different, is the cloned MAC. */