NetworkManager/clients/cli
Thomas Haller f42b4960f8 cli: warn when adding connection with a name that already exists
As far as NetworkManager is concerned, the "connection.id" (also called
"con-name" in nmcli) is a pretty name and does not need to be unique.

UI components usually show the "connection.id" instead of the
"connection.uuid" identifier. It is hence likely, that the user
would not intentionally re-use the same name for multiple connection
profiles.

Print a warning to stderr when the user adds such a connection.

This only affects `nmcli connection add` and `nmcli connection import`,
but not `nmcli connection clone` and not interactive edit mode.

https://bugzilla.redhat.com/show_bug.cgi?id=1460796
2017-07-17 14:49:31 +02:00
..
agent.c cli: move NmcMetaGenericInfo to "utils.h" 2017-04-05 16:53:06 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: fix failed assertion in readline helper 2017-06-15 10:03:58 +02:00
common.h cli: move completion for connection type to meta data 2017-04-12 14:12:20 +02:00
connections.c cli: warn when adding connection with a name that already exists 2017-07-17 14:49:31 +02:00
connections.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
devices.c cli: prioritize devices with default routes and addresses 2017-06-26 15:17:49 +02:00
devices.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +02:00
general.c core,cli: replace wrong pattern for clearing GError 2017-06-27 09:42:28 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: allow the GNU option format 2017-05-15 19:19:49 +02:00
nmcli.h cli: spawn a pager when running on a terminal 2017-05-15 17:23:51 +02:00
polkit-agent.c cli: move NmcMetaGenericInfo to "utils.h" 2017-04-05 16:53:06 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: don't mark field names for translation 2017-04-23 23:45:02 +02:00
settings.h cli: move setting creation to meta data 2017-04-12 14:12:20 +02:00
utils.c cli: disable pager in editor mode 2017-06-07 11:37:23 +02:00
utils.h clients: make meta data subtypes of NMObjBaseInst 2017-07-05 14:22:10 +02:00