Re: [QEMU 2/3] add commands for inactive domains to virsh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]