NetworkManager/clients/cli
Thomas Haller 4cb57964d9 cli: fix handling of VPN names in nmcli by using libnm functions
At various places, nmcli requires to specify a VPN type by name, for example

  $ nmcli connection add type vpn ifname '*' vpn-type $VPN_TYPE

This $VPN_TYPE used to be a hard-coded list of known VPN plugin names.
But actually, it should be a VPN service-type. A service-type used to be
the D-Bus name of the VPN plugin. Now, with multiple VPN support that
is no longer the case, but it still has the form of a D-Bus bus name.
Alternativley, it could be an alias, which is just a way for plugins
to support multiple service-types.

Fix that, to support fully qualified service-types in the form
of D-Bus bus names. Also, support lookup by name, in which case
the present plugin-info instances are searched.
Finally, support a list of hard-code short-names.

All the logic how to translate a short-name to a fully qualified
service-type is now inside libnm, so that various user agree on
those names and don't have to hard-code them each.
2016-06-15 10:32:32 +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 cli: declare external variable nm_cli in <nmcli.h> header 2016-05-03 11:53:15 +02: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: fix handling of VPN names in nmcli by using libnm functions 2016-06-15 10:32:32 +02:00
connections.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
devices.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
devices.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
general.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +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 nmcli-completion: complete filename for VPN import and passwd-file 2016-05-19 12:52:59 +02:00
nmcli.c cli: remove version check against NM 2016-04-28 09:35:20 +02:00
nmcli.h cli: declare external variable nm_cli in <nmcli.h> header 2016-05-03 11:53:15 +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: add ipv6.token support 2016-05-30 16:32:07 +02:00
settings.h cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
utils.c build: avoid compiler warnings about non-constant format strings (-Wformat-nonliteral) 2016-06-05 12:22:01 +02:00
utils.h macros: add macro _nm_printf() for function attribute 2016-06-05 12:22:01 +02:00