]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Implement "domrename" command
authorTomas Meszaros <exo@tty.sk>
Mon, 10 Aug 2015 19:59:15 +0000 (21:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Aug 2015 08:50:20 +0000 (10:50 +0200)
commitff486e0d29a7c08e7131447ca3c878ed791def4e
tree5d7bd436fe613c7401c035d3d2c17565fd6a4456
parent9f7a559a6d1ab4103de238d59910baefa7b425ff
virsh: Implement "domrename" command

This patch implements new virsh command, domrename.

Using domrename, it will be possible to rename domain from the virsh shell by
calling virRenameDomain API.

It takes two arguments, current domain name and new domain name.

Example:

virsh # list --all
 Id    Name                           State
 ----------------------------------------------------
  -     bar                            shut off

virsh # domrename bar foo
Domain successfully renamed

virsh # list --all
 Id    Name                           State
 ----------------------------------------------------
  -     foo                            shut off

virsh #

Signed-off-by: Tomas Meszaros <exo@tty.sk>
tools/virsh-domain.c
tools/virsh.pod