After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 723175 - [review] nmcli: allow creating temporary connection profiles
[review] nmcli: allow creating temporary connection profiles
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nmcli
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-01-28 16:51 UTC by Jiri Klimes
Modified: 2014-01-30 09:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jiri Klimes 2014-01-28 16:51:33 UTC
nmcli should allow creating temporary connection profiles, i.e. the profiles that are not backed up on disk by NM, but only kept in memory.

The code is available for review in jk/nmcli-unsaved-con branch.
Comment 1 Thomas Haller 2014-01-28 17:00:39 UTC
Looks good to me. Pushed update for bash-completion.
Comment 2 Dan Williams 2014-01-29 17:33:23 UTC
"Note that once you save the profile persistently it remains persistent.\n"
"Thought you may still save subsequent changes as temporary. If you wanted\n"
"to undo persistency, you would need to delete the whole profile.\n"));

Possibly clearer:

Note that once you save the profile persistently those settings are saved across reboot or restart.  Subsequent changes can also be temporary or persistent, but any temporary changes will not persist across reboot or restart.  If you want to fully remove the persistent connection, the connection profile must be deleted.

The rest looks good!
Comment 3 Jiri Klimes 2014-01-30 09:59:15 UTC
Updated and pushed to master:

11cce07 Allow saving connection profile as temporary in nmcli (bgo #723175)
6d25080 cli/bash-completion: complete 'save' option for `nmcli connection add`
ec0f629 cli: persistent vs. temporary save for 'nmcli con edit'
2d523bd cli: allow creating temporary (unsaved) connection with 'nmcli con add'