<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font size="3" face="Times New Roman"><br id="FontBreak"></font>Thanks Matthias for the explanation, I was working on the project which required libvirt to control/set networking on a given ESX host. I may need  <br> <BR><div>> Date: Sun, 5 Aug 2012 22:45:26 +0200<br>> Subject: Re: [libvirt] [PATCH v5] ESX: Add routines to interface driver<br>> From: matthias.bolte@googlemail.com<br>> To: ata.husain@hotmail.com<br>> CC: libvir-list@redhat.com<br>> <br>> 2012/8/5 Matthias Bolte <matthias.bolte@googlemail.com>:<br>> > 2012/8/2 Ata E Husain Bohra <ata.husain@hotmail.com>:<br>> >> Add following routines to esx_interface_driver:<br>> >>     esxNumOfInterfaces,<br>> >>     esxNumOfDefinedInterfaces,<br>> >>     esxListInterfaces,<br>> >>     esxListDefinedInterfaces,<br>> >>     esxInterfaceLookupByMACString,<br>> >>     esxInterfaceGetXMLDesc,<br>> >>     esxInterfaceUndefine,<br>> >>     esxInterfaceCreate,<br>> >>     esxInterfaceDestroy<br>> >><br>> >> Signed-off-by: Ata E Husain Bohra <ata.husain@hotmail.com><br>> ><br>> > Okay, I finally had time to take a detailed look at the interface<br>> > driver and the related network driver and your proposed implementation<br>> > for the interface driver.<br>> ><br>> > I think listing HostVirtualNics in the interface driver is not the<br>> > correct mapping between vSphere API and libvirt. Also listing<br>> > HostVirtualNics as bridges is not correct because a HostVirtualNic is<br>> > not a bridge. A HostVirtualSwitch can be seen as a kind of bridge, but<br>> > a HostVirtualSwitch is more like a virtual network in libvirt terms.<br>> ><br>> > In terms of libvirt the interface driver is about physical NICs that<br>> > can be used to connect a libvirt virtual network to the physical<br>> > network. Therefore, the interface driver should just list the<br>> > PhysicalNics, but not the HostVirtualNics. I think there is currently<br>> > no place in the libvirt API to map the HostVirtualNics to. Also I<br>> > don't think that it is important to make the HostVirtualNics available<br>> > via libvirt API. I might be wrong here, but mapping them via libvirt<br>> > interface driver is still wrong in my opinion.<br>> ><br>> > Regarding the network driver, I think a libvirt virtual network is<br>> > best represented by a HostVirtualSwitch and the HostPortGroups are<br>> > mapped to the portgroups of a libvirt virtual switch.<br>> ><br>> > I'm sorry that I let you wait for quite a while now until I came to<br>> > this understanding that is contrary to your proposed interface driver.<br>> <br>> I missed to mention that I proposed an implementation for the<br>> interface and network drivers according to the described mapping:<br>> <br>> https://www.redhat.com/archives/libvir-list/2012-August/msg00307.html<br>> https://www.redhat.com/archives/libvir-list/2012-August/msg00308.html<br>> <br>> -- <br>> Matthias Bolte<br>> http://photron.blogspot.com<br></div>                                           </div></body>
</html>