Hello,

I was trying to set the "host-reservation-identifiers" parameter via hook. The documentation says it is a global parameter, so I tried "remote-global-parameter4-set".

curl -X POST -H "Content-Type: application/json" -d '{ "command": "remote-global-parameter4-set", "service": [ "dhcp4" ], "arguments": { "parameters": { "host-reservation-identifiers": [ "hw-address" ] }, "remote": { "type": "mysql" }, "server-tags": [ "all" ] } }' http://localhost:8080/

The response was:

[ { "result": 1, "text": "StampedValue: provided value of the 'host-reservation-identifiers' parameter has invalid type: list" } ]

I got the documentation that way, that it should be a list, but okay, let's try it as a string:

curl -X POST -H "Content-Type: application/json" -d '{ "command": "remote-global-parameter4-set", "service": [ "dhcp4" ], "arguments": { "parameters": { "host-reservation-identifiers": "hw-address" }, "remote": { "type": "mysql" }, "server-tags": [ "all" ] } }' http://localhost:8080/

The new response was:

[ { "result": 1, "text": "bad parameter 'host-reservation-identifiers' value type: expected list, got string" } ]

This looks like I use the right command, it knows 'host-reservation-identifiers' and how it wants it (as a list). But list didn't work. Am I missing something?

Best regards,

Stephan
_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to