mmm

I would like to get host(i.e. node) interface info
as well as domain(guest) network/interface info

I will probably would like to set/manipulate the node and domains as well
but it is simpler to start with the get functions - isn't it?

Did I totally misunderstood the architecture?

shahar





________________________________
From: Daniel Veillard <veill...@redhat.com>
To: Shahar Klein <shaharkl...@yahoo.com>
Cc: libvir-list@redhat.com
Sent: Tuesday, September 8, 2009 5:20:34 PM
Subject: Re: [libvirt] Interface driver and ESX support

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/
dan...@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



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

Reply via email to