Beniamino Galvani
740fc29ea7
merge: branch 'bg/checkpoint-bgo757858-v2' (early part)
...
https://bugzilla.gnome.org/show_bug.cgi?id=757858
2016-08-11 11:57:33 +02:00
Thomas Haller
80d52e3230
nm-glib: add compatibility wrapper for g_variant_new_take_string()
2016-08-11 11:54:18 +02:00
Thomas Haller
d23f43f2b9
core: add nm_bus_manager_ensure_root() helper
2016-08-11 11:54:18 +02:00
Thomas Haller
3d30004710
build: cleanup src/Makefile.am
...
- reorder entries in src/Makefile.am so that general names
are all at the beginning (AM_CPPFLAGS, sbin_PROGRAMS)
and the names for a certain library/binary are grouped
together
- have libNetworkManager.la reuse libNetworkManagerBase.la.
- let all components in src/Makefile.am use the same AM_CPPFLAGS,
except libsystem-nm.la.
- move callouts/nm-dispatcher-api.h to shared/ directory. It
is obviously not internal API to callouts, and callouts is
not a library. Thus, the right place is shared/.
2016-08-11 11:54:18 +02:00
Thomas Haller
d44fa3140b
build: rename libNetworkManager-base.la to libNetworkManagerBase.la
...
it matches libNetworkManagerTest.la.
2016-08-11 11:54:07 +02:00
Thomas Haller
663c85a41a
bulid: don't link NMFakePlatform into NetworkManager binary
...
It's only used for testing. Add a new object libNetworkManagerTest.la
that contains libNetworkManager.la including the test stubs.
2016-08-11 11:54:07 +02:00
Jiří Klimeš
e02d56c50c
libnm-util: document all NMSettingBondError entries
2016-08-10 22:45:31 +02:00
Jiří Klimeš
8fc199ae96
libnm-core: fix invalid return annotation for nm_vpn_editor_plugin_set_plugin_info()
2016-08-10 22:30:50 +02:00
Jiří Klimeš
560f810bf5
libnm-core: add missing element-type annotation
2016-08-10 22:24:10 +02:00
Jiří Klimeš
3a50a46fb9
libnm-core: fix GObject introspection transfer annotations
2016-08-10 22:24:10 +02:00
Beniamino Galvani
ac67771bc1
policy: fix hostname change when IP method ends after activation (take 2)
...
Commit 9446481f4c
("policy: update system hostname when DHCP
configuration changes") tried to fix the missing hostname change when
IPv4 receives a hostname through DHCP but terminates after IPv6, by
calling update_routing_and_dns() as soon as the new DHCP configuration
was received.
It turns out that doing so is not always effective because the device
must be the "best" device (the one with default route) in order to
trigger a hostname change, but the best device status is decided
later. Updating the hostname in device_ipx_config_changed() should
cover all cases.
Fixes: 9446481f4c
https://bugzilla.redhat.com/show_bug.cgi?id=1356015
https://bugzilla.redhat.com/show_bug.cgi?id=1364393
2016-08-09 21:24:35 +02:00
Beniamino Galvani
e4b2c989dc
build: fix build with '--with-suspend-resume=upower'
...
Now we have a single file for all suspend APIs and the selection is
done through the preprocessor: remove stale AM_CONDITIONALs and define
SUSPEND_RESUME_UPOWER when needed.
Fixes: c76eb3e8f7
2016-08-04 16:30:14 +02:00
Beniamino Galvani
765dabd005
libnm: fix introspection annotations for nm_client_load_connections()
...
Add the "(array zero-terminated=1)" GLib introspection annotation when
the parameter is a NULL-terminated string array.
https://mail.gnome.org/archives/networkmanager-list/2016-August/msg00017.html
Reported-by: Petr Horacek <phoracek@redhat.com >
2016-08-04 13:52:43 +02:00
Beniamino Galvani
5c45327056
release: bump version to 1.3.90 (1.4-beta1)
2016-08-03 09:51:02 +02:00
Beniamino Galvani
65e522ee16
release: update NEWS
2016-08-03 09:39:03 +02:00
Beniamino Galvani
482e506674
cli: fix error reporting for connection delete
...
get_connection() shifts to the next argument, so we need to cache the
old one.
Fixes: 717db4fe01
2016-08-02 17:21:12 +02:00
Beniamino Galvani
ec6a118f29
cli: fix connection delete/monitor
...
The two commands should apply to all available connections matching
the given name.
Fixes: 717db4fe01
2016-08-02 16:49:37 +02:00
Francesco Giudici
2adb5fc00f
nmcli: fix connection clone/modify
...
remove extra "next_arg"s (get_connection already shifts argv).
Fixes: 717db4fe01
2016-08-02 15:44:47 +02:00
Beniamino Galvani
2eafd0ea52
tui: avoid failed assertion when adding bond slaves
...
When trying to add new slaves to a bond connection, for the first
slave nmt_add_connection_show() is called with !priv->single_type to
display a slave-type selection form. For the second slave the type is
predefined and thus nmt_add_connection_show() doesn't show the dialog;
instead it calls create_connection() directly, which invokes
nmt_newt_form_quit() on the not-shown dialog causing:
nmtui-CRITICAL **: nmt_newt_form_quit: assertion 'priv->form != NULL' failed
Don't call nmt_newt_form_quit() if the form was not shown.
https://bugzilla.gnome.org/show_bug.cgi?id=768981
2016-08-01 17:20:38 +02:00
Lubomir Rintel
b01219ad1b
libnm: link with libdl
...
Not default when linking with GOLD linker, but used for loading the VPN
plugins. We still get it when using NSS by dumb luck, but GnuTLS doesn't
drag it in.
https://bugzilla.gnome.org/show_bug.cgi?id=769328
2016-08-01 17:03:07 +02:00
Lubomir Rintel
2956fd5fcb
merge: branch 'lr/completion-2'
...
https://bugzilla.gnome.org/show_bug.cgi?id=768737
2016-08-01 16:11:35 +02:00
Lubomir Rintel
8cc6ce7e44
cli: add -f argument completion
2016-08-01 15:51:29 +02:00
Lubomir Rintel
2e5f8d7de6
cli: complete global flags
2016-08-01 15:51:29 +02:00
Lubomir Rintel
e996dfbb26
cli: make global flags parsing saner
...
Keep argv pointed at the current argument not the previous one.
2016-08-01 15:51:29 +02:00
Lubomir Rintel
81e8575a46
cli: don't call the nmc_do_cmds() default handler if we're at the end of command completion
2016-08-01 13:52:36 +02:00
Lubomir Rintel
8e7c94ed07
cli/connections: there's nothing to complete for reload
2016-08-01 13:52:36 +02:00
Lubomir Rintel
9e8a227813
cli/connections: add completion to show subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
a410e40655
cli/connections: add completion to down subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
af5c235f14
cli/connections: add completion to import subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
345291d6f1
cli/connections: add completion to load subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
680b53c96a
cli/connections: add completion to up subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
c561fa34d2
cli/connections: add completion to export subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
075e705bc7
cli/connections: add completion to monitor subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
9d076a7a1a
cli/connections: add completion to delete subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
18352340b6
cli/connections: add completion to clone subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
2895261c91
cli/connections: do connection completion in get_connection()
...
Start completing by the id if the filter type is not specified
2016-08-01 13:52:36 +02:00
Lubomir Rintel
717db4fe01
cli/connections: split connection name parsing
...
Reduces redundant code paths; will make it easier to implement
completion in a common one.
2016-08-01 13:52:36 +02:00
Lubomir Rintel
023791edb0
cli/connections: use nmc_do_cmd()
2016-08-01 13:52:36 +02:00
Lubomir Rintel
0e298456ed
cli/connections: add active connection completion
...
Start completing by the id if the filter type is not specified
2016-08-01 13:52:36 +02:00
Lubomir Rintel
2c24de5814
cli/device: add completion to wifi hotspot subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
1a0dfd31c4
cli/device: add completion to wifi connect subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
8679793f6b
cli/device: add completion to wifi list subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
efd22c24e8
cli/device: add completion to wifi rescan subcommand
2016-08-01 13:52:36 +02:00
Lubomir Rintel
3068886043
cli/device: export some useful completion functions
...
Wi-Fi access point completion functionality and stuff useful for completing
"ifname" and "ap" for "nmcli c up".
2016-08-01 13:52:36 +02:00
Lubomir Rintel
4302e05b1a
cli/device: make it possible to limit completion to wifis
2016-08-01 13:52:36 +02:00
Lubomir Rintel
d2842d16e3
cli/device: replace some duplicate code with find_wifi_device_by_iface()
2016-08-01 13:52:36 +02:00
Lubomir Rintel
1d8ab4e276
cli/device: make devices_idx argument to find_wifi_device_by_iface() optional
...
Most callers don't use it.
2016-08-01 13:52:36 +02:00
Lubomir Rintel
f32285f03f
cli/device: make find_wifi_device_by_iface use sorted device array
...
...as opposed to GPtrArray. The point is to be able to have a single device
list that could be later reused with complete_device().
2016-08-01 13:52:36 +02:00
Lubomir Rintel
58caeea846
cli/trivial: move find_ap_on_device() up
2016-08-01 13:52:36 +02:00
Lubomir Rintel
ed215dc372
cli/trivial: move find_wifi_device_by_iface() up
2016-08-01 13:52:36 +02:00