<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>Thank you very much : )</div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Matthias Bolte <matthias.bolte@googlemail.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> Chris Lalancette <clalance@redhat.com>; libvir-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, September 9, 2009 1:11:47 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt] Interface driver and ESX support<br></font><br>2009/9/9 Shahar Klein <<a
 ymailto="mailto:shaharklein@yahoo.com" href="mailto:shaharklein@yahoo.com">shaharklein@yahoo.com</a>>:<br>> I think I understand the mechanism of the VI API<br>> and the way esx_vi.c is using it<br>> the surounding is a bit more complex for me<br>> so<br>> can you provide the framework?<br>> I mean<br>> can you put in the esx_interface_driver.c and h<br>> and the registration etc...<br>> and also putting it all into the auto make mechanism(I should learn this<br>> sometime...)<br>> I will put in the content into the functions<br>> for the time being I am registering the esx_driver as the interface driver<br>> so I can get a fill of it<br><br>Well, if you want to give it a try, here you go.<br><br>I attached a patch that adds a basic interface driver with open and<br>close method. The interface driver doesn't need it's own private<br>driver struct, it just uses the same context already opened by the<br>main ESX
 driver.<br><br>Listing the available physical NICs should be easy. You'll need to<br>obtain the HostSystem object and query for its config.network.pnic<br>property. This is a list of PhysicalNic objects. You'll need to add a<br>mapping for the PhysicalNic type to the esx_vi_types.[ch]. There is<br>plenty of examples in the current ESX driver how to do all these<br>things.<br><br>Matthias<br></div></div><div style="position:fixed"></div></div><br>

      </body></html>