[Kea-users] Problems with client-classes and the API
Michael Schwartzkopff
ms at sys4.de
Sat Dec 27 16:07:46 UTC 2025
Found it myself:
In the list I only get the names, all parameters I only get through the
class-get command.
Michael
On 12/27/25 17:04, Michael Schwartzkopff via Kea-users wrote:
> Hi,
>
>
> I started to use the API of the KEA 3.0.2. I wanted to check config of
> the client-classes. I use the defauli config of the KEA server:
>
> "client-classes": [
> {
> "boot-file-name": "/dev/null",
> "name": "voip",
> "next-server": "192.0.2.254",
> "option-data": [ ],
> "option-def": [ ],
> "server-hostname": "hal9000",
> "test": "substring(option[60].hex,0,6) == 'Aastra'"
> }
> ],
>
>
> With the command:
>
> curl -X POST -H "Content-Type: application/json" -d '{ "command":
> "class-list", "service": [ "dhcp4" ] }' http://127.0.0.1:8000/
>
>
> I get the answer:
>
> [
> {
> "arguments": {
> "client-classes": [
> {
> "name": "voip"
> }
> ]
> },
> "result": 0,
> "text": "1 class found"
> }
> ]
>
>
> Any idea why I do not get the test and the other parameters through
> the API?
>
>
> Michael Schwartzkopff
>
>
More information about the Kea-users
mailing list