Re: python libvirt methods to virDomainBlockStats and virDomainInterfaceStats

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

 



Investigating the source, I find the libvirtclass.txt file in
libvirt-source/python directory with these contents:

[...]

Functions failed:
    virConnSetErrorFunc
    virDomainGetSchedulerParameters
    virConnectGetVersion
    virSetErrorFunc
    virDomainSetSchedulerParameters
    virConnCopyLastError
    virDomainBlockStats
    virCopyLastError
    virDomainGetVcpus
    virDefaultErrorFunc
    virResetError
    virDomainInterfaceStats

On 9/26/07, Marco Sinhoreli <msinhore@xxxxxxxxx> wrote:
> Complementing the last mail:
> Importing the libvirtmod the virDomainInterfaceStats, and
> virDomainBlockStats aren't listed (using help(libvirtmod))
>
> Regards
>
> On 9/26/07, Marco Sinhoreli <msinhore@xxxxxxxxx> wrote:
> > Hello all,
> >
> > I'm using libvirt from cvs, and in libvirt.h there are
> > virDomainBlockStats, and virDomainInterfaceStats calls. I think it is
> > compiled into libvirtmod, then I'm trying to write two methods,
> > blockStats, and interfacesStats in the class virDomain at the
> > libvirt.py library file. I'm not a specialist in python programming
> > and it's not working.
> >
> > Bellow folow the code I have been wrote:
> >
> >     def blockStats(self):
> >         """Block device stats for virDomainBlockStats """
> >         ret = libvirtmod.virDomainBlockStats(self._o)
> >         if ret is None: raise libvirtError ('virDomainBlockStats()
> > failed', dom=self)
> >         return ret
> >
> >     def  interfaceStats(self):
> >         """Network interface stats for virDomainInterfaceStats."""
> >         ret = libvirtmod.virDomainInterfaceStats(self._o)
> >         if ret is None: raise libvirtError ('virDomainInterfaceStats()
> > failed', dom=self)
> >         return ret
> >
> > Any help will be welcome.
> >
> > Best regards
> >
> > --
> > Marco Sinhoreli
> >
>
>
> --
> Marco Sinhoreli
>


-- 
Marco Sinhoreli

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[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]