Re: printing domain information

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

 



On Sat, May 5, 2012 at 1:24 AM, John Wayne <m01z04-libvirt@xxxxxxxxx> wrote:
> how do i print the features of a domain from functions that return a domain object?
> for instance mydomain = virdomain=libvirt.virConnect.lookupByID(conn,domainid)
> so mydomain is virDomainPtr, which is typedef virDomain * virDomainPtr
> i am not sure on how to print the domain object features in python, such as name, disk size, etc

Use python's built in help.

$ python
>>> import libvirt
>>> help (libvirt.virDomain)

-- 
Doug Goldstein

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux