[Kea-users] different lease times
Darren Ankney
darren.ankney at gmail.com
Fri Apr 5 20:21:25 UTC 2024
On Fri, Apr 5, 2024 at 3:55 PM Jason Keltz <jas at yorku.ca> wrote:
>
> Darren,
>
> I take that back (partially)...
>
> At least one of
>
> "client-classes": [
> {
> "name": "long-lease",
> "valid-lifetime": 604800
> },
> {
> "name": "short-lease",
> "test": "member('KNOWN') and not member('long-lease')"
> }
> ],
>
> ... Is still needed to define the alternate lease time. Although I could be explicit:
>
> "client-classes": [
> {
> "name": "long-lease",
> "valid-lifetime": 604800
> },
> {
> "name": "short-lease",
> "valid-lifetime": 300
> "test": "member('KNOWN') and not member('long-lease')"
> }
> ],
>
> I do wonder if I can leave the test condition out of short-lease, again because I define who gets a short-lease and a long-lease explicitly.
That is a good idea - remove the test line (since you add the clients
to one or the other class in the reservations) and be explicit with
the valid-lifetime in each class. Then you could have some other
default valid-lifetime for clients that don't apply to either class
(if exist).
More information about the Kea-users
mailing list