Re: [libvirt] Interface driver and ESX support

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

 



On Tue, Sep 08, 2009 at 06:56:10AM -0700, Shahar Klein wrote:
> I'm trying to get a feel of the python binding and the esx driver
> 
> Trying to get the number of interfaces hit(as anticipated) a non-support wall:
> 
> Traceback (most recent call last):
>   File "test.py", line 362, in ?
>     vmm.refresh()
>   File "test.py", line 189, in refresh
>     print self.conn.numOfDefinedInterfaces()
>   File "/usr/lib/python2.4/site-packages/libvirt.py", line 1347, in numOfDefinedInterfaces
>     if ret == -1: raise libvirtError ('virConnectNumOfDefinedInterfaces() failed', conn=self)
> libvirt.libvirtError: this function is not supported by the hypervisor: virConnectNumOfDefinedInterfaces
> 
> 
> I'm wondering how to fix it

  /**
   * virConnectNumOfDefinedInterfaces:
   * @conn: pointer to the hypervisor connection
   *
   * Provides the number of defined (inactive) interfaces on the
   * physical host.
   *
   * Returns the number of defined interface found or -1 in case of
   * error
   */

 *on thephysical host*

ESX only support remote access basically, so the whole set of Interface
functions are moot. I think it's not what you're looking for anyway.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

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