mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 23:50:10 +01:00
cli: connection: check for deprecated features on "add"/"modify"
If the user happens to create a WiMax or Wi-Fi WEP connection they get a warning.
This commit is contained in:
parent
061c342474
commit
5b4b00b8d2
1 changed files with 5 additions and 0 deletions
|
|
@ -5246,6 +5246,11 @@ connection_warnings(NmCli *nmc, NMConnection *connection)
|
|||
const GPtrArray *connections;
|
||||
guint i, found;
|
||||
const char *id;
|
||||
const char *deprecated;
|
||||
|
||||
deprecated = _connection_check_deprecated(NM_CONNECTION(connection));
|
||||
if (deprecated)
|
||||
g_printerr(_("Warning: %s.\n"), deprecated);
|
||||
|
||||
connections = nm_client_get_connections(nmc->client);
|
||||
if (!connections)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue