cli: add 'nmcli connection clone' for cloning connections (bgo #757627)
authorJiří Klimeš <jklimes@redhat.com>
Thu, 5 Nov 2015 11:03:49 +0000 (12:03 +0100)
committerJiří Klimeš <jklimes@redhat.com>
Wed, 18 Nov 2015 08:37:44 +0000 (09:37 +0100)
commit0c65b289601d46edb0a950e291ddd376e368ccfd
tree1e230f71ca35f45f2daff456c63e8b2f824bb4de
parentf902444325944f324e8c9b37d6d00f2603b52547
cli: add 'nmcli connection clone' for cloning connections (bgo #757627)

Synopsis:
nmcli connection clone [--temporary] [id|uuid|path] <ID> <new name>

It copies the <ID> connection as <new name>. The command is very useful
if there is a connection, but another one is needed for a related
configuration. One can copy the existing profile and modify it for the
new situation.

For example:
$ nmcli con clone main-eth second-eth
$ nmcli con modify second-eth connection.interface-name em4

https://bugzilla.gnome.org/show_bug.cgi?id=757627
clients/cli/connections.c
clients/cli/nmcli-completion
man/nmcli.1.in