NetworkManager/clients/cli
Thomas Haller d742ea7817 cli: don't allow multiple <ifname> arguments to device-reapply
Just like `nmcli device connect` only allows one argument, don't allow
multiple device arguments for reapply.

Allowing multiple device names makes it more complicated to add
additional options to the command. For example, it would be useful
to have a

    nmcli device reapply eth0 connection id other-connection

but when allowing multiple device names, it gets more complicated in
documentation, command line parsing and bash completion.

Note that the user can achieve a very similar outcome by using the
shell:

    for DEV in eth0 eth1 eth2; do
        nmcli device reapply $DEV &
    done
    wait

argubaly, this doesn't report the exit status properly. To properly
handle that would require more effort. Also, it is somewhat less
efficient, but well.

This is an API change, however it is very new API that probably nobody
is using much. Also, the documentation (man nmcli) didn't mention the
possibility to pass multiple device names.
2016-05-03 11:52:57 +02:00
..
agent.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
common.h cli: do not echo passwords on terminal when asking for them 2015-12-07 14:14:58 +01:00
connections.c cli: handle device failure when activating 2016-04-29 11:16:30 +02:00
connections.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
devices.c cli: don't allow multiple <ifname> arguments to device-reapply 2016-05-03 11:52:57 +02:00
devices.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
general.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
general.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
Makefile.am build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
nmcli-completion cli: don't allow multiple <ifname> arguments to device-reapply 2016-05-03 11:52:57 +02:00
nmcli.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
nmcli.h cli: remove version check against NM 2016-04-28 09:35:20 +02:00
polkit-agent.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c cli: allow setting multiple IPs in bond 'arp_ip_target' option 2016-03-29 18:10:05 +02:00
settings.h cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
utils.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
utils.h cli: remove version check against NM 2016-04-28 09:35:20 +02:00