On Fri, Apr 5, 2024 at 3:55 PM Jason Keltz <j...@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).
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to