mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 03:10:16 +01:00
cli: initialize adsl.protocol in editor when creating a new connection
The protocol is required and it is nice to have a valid initial value for
the property.
(cherry picked from commit 5502d8691a)
This commit is contained in:
parent
1f7be49519
commit
9bca3b7a37
1 changed files with 8 additions and 0 deletions
|
|
@ -8378,6 +8378,14 @@ editor_init_new_connection (NmCli *nmc, NMConnection *connection)
|
|||
nmc_setting_custom_init (base_setting);
|
||||
}
|
||||
|
||||
/* ADSL */
|
||||
if (g_strcmp0 (con_type, NM_SETTING_ADSL_SETTING_NAME) == 0) {
|
||||
/* Initialize a protocol */
|
||||
g_object_set (NM_SETTING_ADSL (base_setting),
|
||||
NM_SETTING_ADSL_PROTOCOL, NM_SETTING_ADSL_PROTOCOL_PPPOE,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/* Always add IPv4 and IPv6 settings for non-slave connections */
|
||||
setting = nm_setting_ip4_config_new ();
|
||||
nmc_setting_custom_init (setting);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue