mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-23 10:50:37 +01:00
ethernet: set the connection type when generating the connection
Otherwise the connection wouldn't verify:
<error> [1458066126.2270] device (eth10): Generated connection does not verify:
connection.type: property type should be set to '802-3-ethernet'
<debug> [1458066126.2271] manager: (eth10): can't assume; no connection
(cherry picked from commit 4b71939e9ac3df93bfe72af0eac42b4ebaf94e15)
This commit is contained in:
parent
ecd42cd915
commit
8f82fa83ce
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue