diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2022-03-08 12:04:27 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2022-03-13 18:23:44 +0100 |
commit | 5b4b00b8d2ec78ce28bf01589142ef605df36e69 (patch) | |
tree | a3265446b7eda632efac254e415779c4054a4551 | |
parent | 061c3424743ceb54425ae28be685e5a9c43ea147 (diff) | |
download | NetworkManager-lr/wep-cli.tar.gz |
cli: connection: check for deprecated features on "add"/"modify"lr/wep-cli
If the user happens to create a WiMax or Wi-Fi WEP connection they get a
warning.
-rw-r--r-- | src/nmcli/connections.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nmcli/connections.c b/src/nmcli/connections.c index 221761da22..bb73bb4918 100644 --- a/src/nmcli/connections.c +++ b/src/nmcli/connections.c @@ -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) |