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


--
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.
[email protected]

Reply via email to