summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cli/device: add modify commandlr/device-modifyLubomir Rintel2016-06-293-5/+181
| | | | It modifies the applied connection using the Reapply API.
* cli/connection: export read_connection_properties()Lubomir Rintel2016-06-292-8/+16
| | | | It makes sense to modify the applied connection from the device object.
* cli/device: add device name completionLubomir Rintel2016-06-292-26/+74
| | | | Useful with connect, disconnect, delete, monitor, show and reapply.
* cli/device: split get_device()Lubomir Rintel2016-06-291-107/+70
| | | | | Parsing a single device name from the command line is generally useful. Remove the open coded versions in reapply, connect & status.
* cli/trivial: rename device_list() to get_device_list()Lubomir Rintel2016-06-291-4/+4
| | | | It will look nicer when we have get_device().
* cli/device: use nmc_do_cmd()Lubomir Rintel2016-06-291-115/+45
|
* cli: split out do_cmd()Lubomir Rintel2016-06-293-28/+71
|
* cli: use should_wait consistentlyLubomir Rintel2016-06-292-4/+4
| | | | It's a semaphore, not a boolean.
* cli: move the final completion check after the main loop exitLubomir Rintel2016-06-292-6/+3
| | | | | | For "nmcli d modify" we'll need to do the completion from async handlers. This seems to be the most reasonable place to ignore the errors.
* cli/trivial: rename some functions for consistencyLubomir Rintel2016-06-291-9/+9
| | | | Some functions that take device lists use plural form in name.
* cli/connections: only do completion for the last argumentLubomir Rintel2016-06-291-13/+9
| | | | | Completing the property when we stop parsing due to error is not the right thing to do.
* wwan/ofono: merge branch 'th/review/ofono'Thomas Haller2016-06-288-112/+1534
|\ | | | | | | | | https://mail.gnome.org/archives/networkmanager-list/2016-June/msg00085.html https://mail.gnome.org/archives/networkmanager-list/2016-June/msg00089.html
| * wwan/ofono: fix indentationth/review/ofonoBeniamino Galvani2016-06-281-23/+23
| |
| * wwan/ofono: remove unused codeDan Williams2016-06-281-5/+0
| |
| * wwan/ofono: fix comment about IP4Config refcountingDan Williams2016-06-281-1/+2
| |
| * wwan/ofono: clean up and standardize loggingDan Williams2016-06-281-200/+106
| |
| * build: show ofono enablement status in configure summaryDan Williams2016-06-281-0/+1
| |
| * wwan/ofono: simplify capabilities function and add FIXME about LTEDan Williams2016-06-281-4/+3
| |
| * wwan/ofono: whitespace fixupDan Williams2016-06-281-1/+0
| |
| * wwan/ofono: remove some unused typesDan Williams2016-06-281-7/+0
| |
| * wwan: no need for NM_MODEM_BROADBAND_MODEM to be publicDan Williams2016-06-282-2/+2
| |
| * wwan/ofono: clean up g_clear_object() usageDan Williams2016-06-281-17/+8
| |
| * wwan/ofono: use g_dbus_proxy_new_for_bus()Dan Williams2016-06-281-127/+42
| |
| * wwan: rework ModemManager/ofono initializationDan Williams2016-06-281-133/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids the following error when ofono isn't running: NetworkManager[25133]: <info> [1466186144.1392] ofono is now available NetworkManager[25133]: <warn> [1466186144.1637] failed to enumerate oFono devices: Cannot invoke method; proxy is for a well-known name without an owner and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag because the code assumes that if the GDBusProxy is created, that oFono is available. That's not the case with DO_NOT_AUTO_START because it creates the proxy anyway, and lets the caller listen for name-owner-changed signals instead. The GDBusProxy also doesn't need to be cleared, since it will follow name-owner changes and emit g-name-owner changes when oFono starts/stops. This also fixes the oFono name-owner-changed watch. It was presumably using the signal name copied from the ModemManager 'notify::name-owner' code, but that's a GDBusObjectManagerClient. The oFono code is using a GDBusProxy for which the signal is 'notify::g-name-owner'. Finally, the oFono code shouldn't really be piggy-backing on the ModemManager autolaunch code, it's just cleaner to keep the two code paths separate and initialize oFono in parallel.
| * wwan/ofono: whitespace fixupDan Williams2016-06-282-5/+1
| |
| * wwan/ofono: fix a few more memory leaksDan Williams2016-06-281-13/+8
| |
| * wwan: remove some dbus-glib left-oversDan Williams2016-06-281-3/+0
| |
| * wwan: use modem basename as NM device nameDan Williams2016-06-281-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | NM_MODEM_UID is used as the modem device name, and the device name cannot contain path-like characters. Ofono has a bluez plugin that detects paired DUN/PAN capable Bluetooth devices, and these devices are created with a multi-component object path like "/hfp/org/bluez/hci0/dev_00_26_E2_AB_68_66". The NM ofono plugin cannot use these paths as NM device names. Instead, strip off any path components and use the last part of the object path as the NM device name.
| * wwan: cleanup clearing ofono proxy instanceThomas Haller2016-06-281-14/+7
| |
| * wwan: don't compile ofono support by default and mark as experimentalThomas Haller2016-06-281-3/+3
| | | | | | | | | | | | | | | | | | At least, there are assertions that fail and must be fixed. Still, let's merge the (incomplete) ofono patches early to have something that can be incrementally improved. However, for now mark it as experimental and disable it by default.
| * core: revert asserts to NM_ASSERT_VALID_PATH_COMPONENT() and ↵Thomas Haller2016-06-281-17/+4
| | | | | | | | | | | | | | _get_property_path() If ofono violates these asserts, then the bug must be fixed somewhere else, not by silently doing something wrong.
| * wwan: fix memleaksThomas Haller2016-06-281-12/+5
| | | | | | | | And use gs_free in ofono_check_name_owner()
| * wwan: cleanup includesThomas Haller2016-06-283-17/+10
| |
| * wwan: some minor refactoringsThomas Haller2016-06-282-41/+24
| |
| * wwan: remove unused codeThomas Haller2016-06-281-11/+0
| |
| * wwan: fix building for !WITH_OFONOThomas Haller2016-06-281-0/+2
| |
| * wwan: fix compilation error about wrong field nameThomas Haller2016-06-281-1/+1
| |
| * wwna: fix compiler error about wrong prototypeThomas Haller2016-06-281-0/+1
| |
| * wwan: fix using wrong enum type for flags for g_dbus_proxy_new()Thomas Haller2016-06-282-3/+3
| |
| * trivial: style issues and indentionThomas Haller2016-06-284-191/+192
| |
| * wwan: add support for using oFono as a modem managerMathieu Trudel-Lapierre2016-06-288-21/+1755
| | | | | | | | | | | | | | | | This patch adds core wwan support for ofono, as used by Ubuntu Touch. Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> https://mail.gnome.org/archives/networkmanager-list/2016-June/msg00089.html
| * wwan: cleanup clearing modem-manager instanceThomas Haller2016-06-281-45/+24
|/
* vpn,dns: merge branch 'bg/vpn-dns-rh1348901'Beniamino Galvani2016-06-283-15/+73
|\
| * vpn: don't merge DNS properties into parent device's configurationBeniamino Galvani2016-06-281-3/+2
| | | | | | | | | | | | DNS properties should not be copied to parent device's configuration otherwise they will be applied twice, possibly with two different DNS priorities.
| * dns: log DNS servers at TRACE levelBeniamino Galvani2016-06-282-3/+51
| | | | | | | | | | | | | | Be more verbose at TRACE level and log the DNS servers associated to configurations. This will help to debug issues like [0]. [0] https://bugzilla.redhat.com/show_bug.cgi?id=1348887
| * vpn: reuse existing ip_config objects when config gets updatedBeniamino Galvani2016-06-281-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we created a new NMIP[46]Config object to replace the previous one every time the plugin reported a new IP configuration through the Ip[46]Config signal, but the old configuration was not removed from the DNS manager and would become stale. The interaction with DNS manager is handled by NMPolicy, which only reacts to changes in connection status, so it's not easy to have the configuration removed from DNS while keeping the connection state ACTIVATED. A cleaner solutions is to avoid creating a new IP configuration object and reuse the existing one if possible. The side effect is that the D-Bus path of the object will not change, which seems also positive. https://bugzilla.redhat.com/show_bug.cgi?id=1348901
| * vpn: dispatch pre-up scripts only onceBeniamino Galvani2016-06-281-1/+2
|/ | | | | | If the plugin sends a new configuration when the connection is already activated the state should not go back to PRE_UP since this causes dispatcher scripts to run again.
* cli: option autocompletion should not match words without trailing '-'Francesco Giudici2016-06-281-0/+2
| | | | | | | | | | | | This would fix for example: nmcli e <TAB> (e interpreted as --escape, would allow autocompletion to work... but when the command is executed an error is reported) Moreover, we will now have: nmcli c <TAB> autocompletion work correctly, i.e., c is correctly interpreted as "connection" instead of "--colors"
* bond/trivial: fix typoFrancesco Giudici2016-06-281-1/+1
|
* cli: initialize connection list in do_device_connect()Beniamino Galvani2016-06-271-0/+2
| | | | | | | | | The connection list may be required in nmc_secrets_requested() if secrets are needed. Fixes: 45fc268890f70fec0fb66c59de388d1798837230 https://bugzilla.gnome.org/show_bug.cgi?id=767987