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 757627 - nmcli: add a command to clone connections: nmcli connection clone
nmcli: add a command to clone connections: nmcli connection clone
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: 2015-11-05 11:24 UTC by Jiri Klimes
Modified: 2015-11-18 08:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jiri Klimes 2015-11-05 11:24:05 UTC
A command to clone/copy a connection is very useful, either for testing purposes, or in production to clone an existing connection, modify it and use for a new situation.

Synopsis:
  nmcli connection clone [--temporary] [id|uuid|path] <ID> <new name>
    
Example:
  $ nmcli con clone main-eth second-eth
  $ nmcli con mod second-eth connection.interface-name em4
Comment 1 Jiri Klimes 2015-11-05 11:25:00 UTC
Find the implementation in branch jk/nmcli-con-clone
Comment 2 Beniamino Galvani 2015-11-13 13:36:53 UTC
Both idea and implementation LGTM.
Comment 3 Jiri Klimes 2015-11-18 08:43:43 UTC
Committed as
0c65b28 cli: add 'nmcli connection clone' for cloning connections (bgo #757627)