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

Re: [libvirt-users] virsh attach device equivalent in libvirt API



On Fri, Dec 04, 2015 at 04:37:58PM +0000, Jean-Pierre Ribeauville wrote:
> Hi,
> 
> Is  there an  equivalent  of  "virsh attach-device -live
> -persistent"  within libvirt API :

Use the source, Luke!  You can see exactly how virsh implements the
attach-device command:

https://github.com/libvirt/libvirt/blob/master/tools/virsh-domain.c#L238

-- 
Lars Kellogg-Stedman <lars redhat com> | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack          | http://blog.oddbit.com/

Attachment: signature.asc
Description: PGP signature


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