On Tue, Sep 18, 2012 at 07:28:44PM +0800, Daniel Veillard wrote: > On Tue, Sep 18, 2012 at 10:56:55AM +0000, Buggi, Harsha wrote: > > Hi, > > > > virNodeGetCPUStats and virDomainGetCPUStats have same name in pyton binding as getCPUStats > > > > virDomainGetCPUStats gets called internally when we use the method getCPUStats. How do we access virNodeGetCPUStats? > > Ouch we need to fix the generator to have domainGetCPUStats !! Err, no we don't. The getCPUStats() binding to virNodeGetCPUStats() is done against the virConnect class, while the getCPUStats() binding to virDomainGetCPUStats() is done against the virDomain class. The names only need to be unique within the scope of the class, not the entire module Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list