<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>
<DIV>mmm</DIV>
<DIV> </DIV>
<DIV>I would like to get host(i.e. node) interface info</DIV>
<DIV>as well as domain(guest) network/interface info</DIV>
<DIV> </DIV>
<DIV>I will probably would like to set/manipulate the node and domains as well</DIV>
<DIV>but it is simpler to start with the get functions - isn't it?</DIV>
<DIV> </DIV>
<DIV>Did I totally misunderstood the architecture?</DIV>
<DIV> </DIV>
<DIV>shahar<BR></DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Daniel Veillard <veillard@redhat.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Shahar Klein <shaharklein@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> libvir-list@redhat.com<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, September 8, 2009 5:20:34 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [libvirt] Interface driver and ESX support<BR></FONT><BR>On Tue, Sep 08, 2009 at 06:56:10AM -0700, Shahar Klein wrote:<BR>> I'm trying to get a feel of the python binding and the esx driver<BR>> <BR>> Trying to get the number of interfaces hit(as anticipated) a non-support wall:<BR>> <BR>> Traceback (most recent call last):<BR>>   File "test.py", line 362, in ?<BR>>     vmm.refresh()<BR>>   File "test.py", line 189, in refresh<BR>>     print
 self.conn.numOfDefinedInterfaces()<BR>>   File "/usr/lib/python2.4/site-packages/libvirt.py", line 1347, in numOfDefinedInterfaces<BR>>     if ret == -1: raise libvirtError ('virConnectNumOfDefinedInterfaces() failed', conn=self)<BR>> libvirt.libvirtError: this function is not supported by the hypervisor: virConnectNumOfDefinedInterfaces<BR>> <BR>> <BR>> I'm wondering how to fix it<BR><BR>  /**<BR>  * virConnectNumOfDefinedInterfaces:<BR>  * @conn: pointer to the hypervisor connection<BR>  *<BR>  * Provides the number of defined (inactive) interfaces on the<BR>  * physical host.<BR>  *<BR>  * Returns the number of defined interface found or -1 in case of<BR>  * error<BR>  */<BR><BR>*on thephysical host*<BR><BR>ESX only support remote access basically, so the whole set of Interface<BR>functions are moot. I think it's not what you're looking for
 anyway.<BR><BR>Daniel<BR><BR>-- <BR>Daniel Veillard      | libxml Gnome XML XSLT toolkit  <A href="http://xmlsoft.org/" target=_blank>http://xmlsoft.org/</A><BR><A href="mailto:daniel@veillard.com" ymailto="mailto:daniel@veillard.com">daniel@veillard.com</A>  | Rpmfind RPM search engine <A href="http://rpmfind.net/" target=_blank>http://rpmfind.net/</A><BR><A href="http://veillard.com/" target=_blank>http://veillard.com/</A> | virtualization library  <A href="http://libvirt.org/" target=_blank>http://libvirt.org/</A><BR></DIV></DIV></div><br>

      </body></html>