[Libvir] [QEMU 2/3] add commands for inactive domains to virsh
Karel Zak
kzak at redhat.com
Mon Aug 28 08:19:53 UTC 2006
On Mon, Aug 28, 2006 at 04:03:14AM -0400, Daniel Veillard wrote:
> > +static vshCmdOptDef opts_start[] = {
> > + {"name", VSH_OT_DATA, VSH_OFLAG_REQ, "name of the inactive domain" },
> > + {NULL, 0, 0, NULL}
> > +};
>
> Could be nice to allow passing UUID too here, names are relatively weak.
Yes. Daniel, see the rest of commands in virsh. There is function
vshCommandOptDomain() that supports ID, NAME ad UUID.
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, "domain name, id, uuid"},
virDomainPtr dom;
if (!(dom = vshCommandOptDomain(ctl, cmd, "domain", NULL)))
return FALSE;
Karel
--
Karel Zak <kzak at redhat.com>
More information about the libvir-list
mailing list