NetworkManager/clients/common
Thomas Haller 18fac0407e cli: merge set_fcn() and remove_fcn()
set_fcn() and remove_fcn() are strongly related. They should accept
arguments in the same format, hence the parsing of the arguments should
be done at one place.

In fact, previously the parsing was separate, leading to ugly
inconsistencies:

  $ nmcli connection modify "$PROFILE" +vpn.data x=y
  $ nmcli connection modify "$PROFILE" -vpn.data x=y
  Error: failed to remove a value from vpn.data: invalid option 'x=y'.

or

  $ nmcli connection modify "$PROFILE" +ipv4.addresses 192.168.1.5/24,192.168.2.5/24
  $ nmcli connection modify "$PROFILE" -ipv4.addresses 192.168.1.5/24,192.168.2.5/24
  Error: failed to remove a value from ipv4.addresses: invalid prefix '24,192.168.2.5/24'; <1-32> allowed.

Let set_fcn() handle set-default, set-all, add, and subtract.
2019-03-25 09:12:33 +01:00
..
tests clients/tests: add wireguard import tests 2019-03-07 22:22:39 +01:00
meson.build shared: add "shared/nm-libnm-core-utils.h" utils 2019-03-25 09:12:32 +01:00
nm-client-utils.c cli: don't treat empty string as valid number in nmc_string_to_uint_base() 2019-03-25 09:12:32 +01:00
nm-client-utils.h libnm,cli: move cleanup macros to "shared/nm-libnm-core-utils.h" 2019-03-25 09:12:32 +01:00
nm-meta-setting-access.c libnm: use NMMetaSettingInfo for tracking setting priority 2018-08-10 10:38:19 +02:00
nm-meta-setting-access.h cli: remove unused argument from nm_meta_selection_create_parse_list() 2018-07-25 17:08:37 +02:00
nm-meta-setting-desc.c cli: merge set_fcn() and remove_fcn() 2019-03-25 09:12:33 +01:00
nm-meta-setting-desc.h cli: merge set_fcn() and remove_fcn() 2019-03-25 09:12:33 +01:00
nm-polkit-listener.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
nm-polkit-listener.h docs: misc. typos 2018-09-15 09:08:03 +02:00
nm-secret-agent-simple.c clients: fix GVariantBuilder memory leak 2019-03-05 09:45:02 +01:00
nm-secret-agent-simple.h libnm: add NMWireGuardPeer and libnm support for peers 2019-02-22 11:00:10 +01:00
nm-vpn-helpers.c all: codespell fixes 2019-03-11 12:03:46 +01:00
nm-vpn-helpers.h cli/wireguard: add import functionality for WireGuard 2019-03-07 22:22:39 +01:00
settings-docs.h.in wireguard: add "peer-routes" setting for WireGuard profiles 2019-03-05 12:23:59 +01:00
settings-docs.xsl cli: fix marking settings docs for translation 2017-04-23 23:45:02 +02:00