GNOME Bugzilla – Bug 746097
nmcli: allow specifying multiple interfaces for nmcli device disconnect and delete
Last modified: 2015-03-20 10:13:48 UTC
It would provide much better user experience. There is no reason why this should not be supported.
Implemented and pushed to branch jk/nmcli-dev-multiple-args-bgo746097.
(TODO: bash completion)
Bash completion updated, branch re-pushed.
Hmm, in device_cb_info_finish() could the if (device) case also just call destroy_queue_element() to replace the: + g_signal_handlers_disconnect_by_func (device, disconnect_state_cb, info); + g_object_unref (device); or is the 'info' data there important? The rest looks OK to me.
(In reply to Dan Williams from comment #4) > Hmm, in device_cb_info_finish() could the if (device) case also just call > destroy_queue_element() to replace the: > > + g_signal_handlers_disconnect_by_func (device, disconnect_state_cb, info); > + g_object_unref (device); > > or is the 'info' data there important? Yes, it could. info was important just for g_signal_handlers_disconnect_by_func(), but not needed for g_signal_handlers_disconnect_matched(). I have changed the code as you suggested. Pushed to master as: b8a2f42 cli: allow multiple devices for 'nmcli device disconnect/delete' (bgo #746097)