diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2015-09-18 11:08:28 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2015-09-21 15:21:51 +0200 |
commit | 5502d8691a0e1b7174a0be85951f155fa587e400 (patch) | |
tree | 1bd5ebc8a6886131df323e5869e47f19f8a15111 | |
parent | 3d64d45d16d761802e92cc3d83a89e3dd572d36d (diff) | |
download | NetworkManager-5502d8691a0e1b7174a0be85951f155fa587e400.tar.gz |
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.
-rw-r--r-- | clients/cli/connections.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 9c87b5d19f..083105b4c8 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -8699,6 +8699,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); |