summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cli: add -f argument completionlr/completion-2Lubomir Rintel2016-08-017-54/+185
|
* cli: complete global flagsLubomir Rintel2016-08-011-0/+9
|
* cli: make global flags parsing sanerLubomir Rintel2016-08-011-34/+36
| | | | Keep argv pointed at the current argument not the previous one.
* cli: don't call the nmc_do_cmds() default handler if we're at the end of ↵Lubomir Rintel2016-08-011-0/+3
| | | | command completion
* cli/connections: there's nothing to complete for reloadLubomir Rintel2016-08-011-1/+0
|
* cli/connections: add completion to show subcommandLubomir Rintel2016-08-011-14/+30
|
* cli/connections: add completion to down subcommandLubomir Rintel2016-08-011-9/+15
|
* cli/connections: add completion to import subcommandLubomir Rintel2016-08-011-4/+10
|
* cli/connections: add completion to load subcommandLubomir Rintel2016-08-011-6/+4
|
* cli/connections: add completion to up subcommandLubomir Rintel2016-08-011-5/+21
|
* cli/connections: add completion to export subcommandLubomir Rintel2016-08-011-5/+9
|
* cli/connections: add completion to monitor subcommandLubomir Rintel2016-08-011-14/+16
|
* cli/connections: add completion to delete subcommandLubomir Rintel2016-08-011-6/+11
|
* cli/connections: add completion to clone subcommandLubomir Rintel2016-08-011-4/+11
|
* cli/connections: do connection completion in get_connection()Lubomir Rintel2016-08-014-24/+45
| | | | Start completing by the id if the filter type is not specified
* cli/connections: split connection name parsingLubomir Rintel2016-08-011-207/+127
| | | | | Reduces redundant code paths; will make it easier to implement completion in a common one.
* cli/connections: use nmc_do_cmd()Lubomir Rintel2016-08-011-261/+178
|
* cli/connections: add active connection completionLubomir Rintel2016-08-011-18/+41
| | | | Start completing by the id if the filter type is not specified
* cli/device: add completion to wifi hotspot subcommandLubomir Rintel2016-08-011-34/+28
|
* cli/device: add completion to wifi connect subcommandLubomir Rintel2016-08-011-25/+44
|
* cli/device: add completion to wifi list subcommandLubomir Rintel2016-08-011-23/+19
|
* cli/device: add completion to wifi rescan subcommandLubomir Rintel2016-08-011-13/+15
|
* cli/device: export some useful completion functionsLubomir Rintel2016-08-012-24/+65
| | | | | Wi-Fi access point completion functionality and stuff useful for completing "ifname" and "ap" for "nmcli c up".
* cli/device: make it possible to limit completion to wifisLubomir Rintel2016-08-011-3/+6
|
* cli/device: replace some duplicate code with find_wifi_device_by_iface()Lubomir Rintel2016-08-011-10/+1
|
* cli/device: make devices_idx argument to find_wifi_device_by_iface() optionalLubomir Rintel2016-08-011-8/+5
| | | | Most callers don't use it.
* cli/device: make find_wifi_device_by_iface use sorted device arrayLubomir Rintel2016-08-011-17/+12
| | | | | ...as opposed to GPtrArray. The point is to be able to have a single device list that could be later reused with complete_device().
* cli/trivial: move find_ap_on_device() upLubomir Rintel2016-08-011-53/+53
|
* cli/trivial: move find_wifi_device_by_iface() upLubomir Rintel2016-08-011-37/+37
|
* cli/networking: add subcommand completionLubomir Rintel2016-08-011-6/+22
|
* cli/agent: add subcommand completionLubomir Rintel2016-08-011-4/+9
|
* cli/agent: use nmc_do_cmd()Lubomir Rintel2016-08-011-35/+9
|
* cli/radio: add subcommand completionLubomir Rintel2016-08-011-4/+25
|
* cli/radio: use nmc_do_cmd()Lubomir Rintel2016-08-011-81/+70
|
* cli/general: add subcommand completionLubomir Rintel2016-08-011-4/+17
|
* cli/general: use nmc_do_cmd()Lubomir Rintel2016-08-011-114/+103
|
* man: document completionLubomir Rintel2016-08-011-0/+17
|
* cli: add ability to indicate command completion expects a file nameLubomir Rintel2016-08-013-6/+17
|
* cli: get rid of the global command completion whitelistLubomir Rintel2016-08-013-7/+19
| | | | | We're going to implement most of the missing pieces; the rest is going to handle inability to complete itself.
* cli: handle global usage with nmc_do_cmd()Lubomir Rintel2016-08-011-14/+5
|
* cli: do not skip over a nonexistent argument in nmc_do_cmd()Lubomir Rintel2016-08-011-1/+1
| | | | | If we're called without an argument, don't shift arguments of the callback -- it would be called with argc==-1.
* nm-dispatcher: Handle the 'connectivity-state' parameter for 'Action'Mario Sanchez Prada2016-07-287-0/+74
| | | | | | | | | Actually handle this new parameter in the nm-dispatcher process, setting the value of a new CONNECTIVITY_STATE environment variable accordingly. This patch also includes new tests to check the different cases. https://bugzilla.gnome.org/show_bug.cgi?id=768969
* man: Added documentation for the connectivity-change dispatcher hookMario Sanchez Prada2016-07-281-1/+17
| | | | | | | Also added documentation for the new CONNECTIVITY_STATE environment variable, that will also be avaiblable in those hooks. https://bugzilla.gnome.org/show_bug.cgi?id=768969
* nm-dispatcher: Added new 'connectivity-state' parameter to private D-Bus APIMario Sanchez Prada2016-07-285-13/+28
| | | | | | | | | In order to pass the connectivity state to the relevant hooks along with the event itself, we need to add this parameter for the 'Action' method of then internal 'org.freedesktop.nm_dispatcher' interface, which will be sent by the network manager main process to the dispatcher. https://bugzilla.gnome.org/show_bug.cgi?id=768969
* nm-dispatcher: Added new action for 'connectivity-change' eventsMario Sanchez Prada2016-07-285-7/+35
| | | | | | | | | | | The purpose of this action is to provide a hook for the OS to act on global changes regarding to connectivity, which can currently be one of 'none', 'portal', 'limited', 'full' or 'unknown'. Check the documentation for a more information on each of those states: https://developer.gnome.org/NetworkManager/stable/nm-dbus-types.html#NMConnectivityState https://bugzilla.gnome.org/show_bug.cgi?id=768969
* build: fix the logging backend default option nameLubomir Rintel2016-07-281-1/+2
| | | | It's --with-config-logging-backend-default, not --with-logging-backend-default.
* cli: take a reference to the device when activatingLubomir Rintel2016-07-281-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It can go away before the activation finishes: (process:378): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer Thread 1 "lt-nmcli" received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff4fa919b in g_logv () from /lib64/libglib-2.0.so.0 (gdb) bt #0 0x00007ffff4fa919b in g_logv () at /lib64/libglib-2.0.so.0 #1 0x00007ffff4fa930f in g_log () at /lib64/libglib-2.0.so.0 #2 0x00007ffff529b3ea in g_type_check_instance () at /lib64/libgobject-2.0.so.0 #3 0x00007ffff528fa94 in g_signal_handlers_disconnect_matched () at /lib64/libgobject-2.0.so.0 #4 0x000000000041ae4e in activate_connection_info_finish (info=0x7b5490) at connections.c:2197 #5 0x00007ffff5279470 in g_cclosure_marshal_VOID__OBJECTv () at /lib64/libgobject-2.0.so.0 #6 0x00007ffff5276617 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0 #7 0x00007ffff5290ea9 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0 #8 0x00007ffff52914ff in g_signal_emit () at /lib64/libgobject-2.0.so.0 #9 0x00007ffff52763e8 in g_closure_invoke () at /lib64/libgobject-2.0.so.0 #10 0x00007ffff52884a2 in signal_emit_unlocked_R () at /lib64/libgobject-2.0.so.0 #11 0x00007ffff529112d in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0 #12 0x00007ffff52919ab in g_signal_emit_by_name () at /lib64/libgobject-2.0.so.0 #13 0x00007ffff78fc9b1 in deferred_notify_cb (data=<optimized out>) at nm-object.c:243 #14 0x00007ffff4fa2703 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0 #15 0x00007ffff4fa2ab0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0 #16 0x00007ffff4fa2dd2 in g_main_loop_run () at /lib64/libglib-2.0.so.0 #17 0x00000000004146e3 in main (argc=<optimized out>, argv=<optimized out>) at nmcli.c:618 (gdb) print info->device
* policy: update system hostname when DHCP configuration changesBeniamino Galvani2016-07-271-0/+18
| | | | | | | | | | | | | | If both IPv4 and IPv6 are enabled and IPv6 terminates first (and ipv4.may-fail=yes), the device becomes ACTIVATED and we try to update the system hostname from the DHCP lease, if necessary. But later, the termination of DHCPv4 doesn't trigger a new update and so it's possible that the system hostname remains unset even if the DHCPv4 lease specifies a hostname. To have a deterministic behavior we should always try to update the system hostname when a DHCP transaction terminates. https://bugzilla.redhat.com/show_bug.cgi?id=1356015
* team: merge branch 'bg/team-conf-expose-rh1310435-v2'Beniamino Galvani2016-07-231-1/+25
|\ | | | | | | | | | | Some fixes for the the loading of JSON team config from teamd. https://bugzilla.redhat.com/show_bug.cgi?id=1310435
| * team: update configuration when adding or removing slavesBeniamino Galvani2016-07-231-0/+24
| | | | | | | | | | | | | | | | | | Unfortunately teamd doesn't have an asynchronous way to notify a change in the actual configuration, so when a port is enslaved or released we wait some time for the changes to take effect and read the configuration again. https://bugzilla.redhat.com/show_bug.cgi?id=1310435