Jean-Pierre Ribeauville
2015-Dec-04 16:37 UTC
[libvirt-users] virsh attach device equivalent in libvirt API
Hi, Is there an equivalent of "virsh attach-device -live -persistent " within libvirt API : virDomainAttachDevice() or virDomainAttachDeviceFlags() or ??? Thanks for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez à l'environnement avant d'imprimer.
Lars Kellogg-Stedman
2015-Dec-04 17:27 UTC
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/
Jean-Pierre Ribeauville
2015-Dec-04 18:55 UTC
Re: [libvirt-users] virsh attach device equivalent in libvirt API
Hi, Very good advice. Thx. J.P. -----Message d'origine----- De : Lars Kellogg-Stedman [mailto:lars@redhat.com] Envoyé : vendredi 4 décembre 2015 18:27 À : Jean-Pierre Ribeauville Cc : libvirt-users@redhat.com Objet : 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/