[Kea-users] Client class evaluation dependency on MySQL reservation class

Christian Schuldt Christian.Schuldt at studiofunk.de
Mon Jul 1 16:06:48 UTC 2019


Hey all,

I'm trying to assign a Client Class that checks for a class that will
only be assigned in reservations, however I'm unable to get it to work.
According to the Note of
https://ftp.isc.org/isc/kea/1.5.0/doc/kea-guide.html#reservation4-client-classes
it should be possible by also checking against "member('KNOWN') which
supposedly defers the evaluation of the class until after the
reservation lookup.

My current config now looks similar to this:
{    "name": "ipxe",
    "test": "member('KNOWN') and (option[77].hex == 'iPXE') and
member('pxe')",
    "boot-file-name": "pxeserver.example.com/menu.php"
},
{    "name": "not_ipxe",
    "test": "member('KNOWN') and member('pxe') and not (option[77].hex
== 'iPXE') ",
    "next-server": "10.1.0.25",
    "boot-file-name": "undionly.kpxe"
}

And in the Mysql Reservation:
ipv4_address			    |  dhcp4_client_classes
INET_ATON('10.1.0.6)   |  pxe


The server I'm testing this with does get the correct IP (which is out
of pool), however it doesn't receive the iPXE information. I tested this
without the "member('pxe')" test which then works. This is a native iPXE
client.

Any help with this would be highly appreciated.


Kind Regards
Christian Schuldt



www.studiofunk.de  


This email may contain material that is confidential, privileged and/or
attorney work product for the sole use of the intended recipient. Any
review, reliance or distribution by others or forwarding without express
permission is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.  Studio Funk
GmbH & Co. KG · Geschäftsführer: Klaus Funk, Markus Weber · Sitz der
Gesellschaft: Hamburg · Handelsregister-Nr.: 67553


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190701/49857d39/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMAGE.gif
Type: image/gif
Size: 2107 bytes
Desc: CompuServe GIF graphic
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190701/49857d39/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMAGE.gif
Type: image/gif
Size: 2545 bytes
Desc: CompuServe GIF graphic
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190701/49857d39/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMAGE.gif
Type: image/gif
Size: 758 bytes
Desc: CompuServe GIF graphic
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190701/49857d39/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMAGE.gif
Type: image/gif
Size: 733 bytes
Desc: CompuServe GIF graphic
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20190701/49857d39/attachment-0003.gif>


More information about the Kea-users mailing list