On Fri, Feb 22, 2008 at 08:04:26AM +0000, Mark McLoughlin wrote:
On Thu, 2008-02-21 at 20:54 +0000, Richard W.M. Jones wrote:
> What this patch allows you to do is to create a table of IP address to
> host (defined by its hardware / MAC address) for each virtual network.
> Optionally you can also assign a hostname. When a host starts up and
> requests an IP address through DHCP, if it is in this table then it
> gets the fixed IP address from the table and, optionally, a fixed
> hostname.
>
> Four new API calls are added. Two are required to list the contents
> of the mapping table. Two more allow you to add and delete a mapping.
>
> The mapping table is semi-permanent. It is stored in
> /var/lib/libvirt/hosts-<networkname>.conf and survives across libvirtd
> restarts.
Cool stuff, but why isn't this just an addition to the network's XML
definition?
Well indeed. It's essentially because this implementation was thought
to be easier. I haven't tried the other implementation so I'm not
categorically sure that is true.
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903