I would probably start with the basic "net-list" type of functionality contained in libvirt. I understand what you mean about the mappings - would the place to start be by mapping the relevant SOAP API model into the esx_vi_generator.input file? Should this conversation be moved to the libvirt-dev-list?<div>
<br></div><div>-jb<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 7:28 AM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/3/31 James Barkley <<a href="mailto:james.barkley@gmail.com">james.barkley@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Greeetings,<br>
> Using the latest git snapshot I noticed that none of the networking<br>
> functions are implemented in the ESX driver. No listing networks, no adding<br>
> networks, etc. This functionality seems to be fully implemented for most of<br>
> the other drivers and I don't see it on the "todo" wiki. Does anyone have an<br>
> idea if/when this might get implemented? Would others be interested if I<br>
> were to add it and submit it as a patch?<br>
> -jb<br>
<br>
</div></div>The networking functions aren't implemented yet, because the ESX and<br>
the libvirt network model don't map directly. I didn't have time to<br>
figure this out in all the necessary details yet. I'll have only<br>
limited time to spent on libvirt and ESX development in the next<br>
months, so I cannot give an ETA for any new features in the driver.<br>
<br>
Regarding the implementation, once we have a sound mapping the<br>
implementation should be the easy part.<br>
<br>
If you want to work on that area I suggest you start by getting<br>
familiar with the libvirt and the ESX networking model and then define<br>
a suitable mapping between them. This might require extensions to the<br>
libvirt network model to handle the vSwitch concept of ESX.<br>
<br>
There might also be a legacy problem to solve. Currently the ESX port<br>
groups are used a bridges in the libvirt domain XML config. Actually<br>
they should be used as virtual networks. This is a shortcoming in my<br>
original design of the ESX driver.<br>
<br>
IIRC, Daniel P. Berrange mentioned a while ago that he is planning to<br>
add such a virtual switch concept to libvirt. There is also vSwitch<br>
item on the todo page.<br>
<font color="#888888"><br>
Matthias<br>
</font></blockquote></div><br></div>