[libvirt] [PATCH] leasetime support per <dhcp> and <host>

Alberto Ruiz aruiz at redhat.com
Fri Oct 14 01:27:26 UTC 2016


I'm attaching the patch because I've been unable to use send-email properly.

2) is a good point, I wanted to discuss it here. Yes 120 is the minimum
allowed by dnsmasq, erroring out seems fine to me, I'll change the patch
accordingly.

On Thu, Oct 13, 2016 at 7:07 AM, Michal Privoznik <mprivozn at redhat.com>
wrote:

> On 13.10.2016 00:03, Alberto Ruiz wrote:
> > Support for custom dhcp wide and per host leasetime.
> >
> > It is specified as a child tag for <dhcp>:
> > <dhcp>
> >   <leasetime>24h</leasetime>
> >   ...
> > </dhcp>
> >
> > And as an attribute for <host>:
> > <dhcp>
> >   <host leasetime="7d" .../>
> > </dhcp>
> >
> > These are the different notations:
> >
> > -1   (infinite/unlimited lease)
> > 120  (seconds are the default unit, 120 seconds is the minimum, if less
> is
> > specified it will use 120)
> > 300s (seconds)
> > 5m   (minutes)
> > 24h  (hours)
> > 7d   (days)
> > ---
>
> I know I'm stepping on a moving train (sorry for that), but I have two
> points to raise:
>
> 1) use git send-email, this patch is mangled by your MTA and does not
> apply.
> 2) 120 seconds is minimum because of dnsmasq? If so, I think we should
> error out instead of silently changing this to a different value behind
> user's back.
>
> Michal
>



-- 
Alberto Ruiz
Associate Engineering Manager - Desktop Management Tools
Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161014/74366598/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-leasetime-support-per-dhcp-and-host.patch
Type: text/x-patch
Size: 45878 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161014/74366598/attachment-0001.bin>


More information about the libvir-list mailing list