Hello,

I've ordered the premium hook libs from ISC and I'm using the kea-ctrl-agent 
api to receive the client-id of an ipv4 lease.

Example:

Request:
curl -X POST -H "Content-Type: application/json" -d '{ "command": "lease4-get", 
"arguments": {"ip-address": "192.0.2.1"}, "service": [ "dhcp4" ] }' 
http://localhost:8000/

Response:
[ { "arguments": { "client-id": "00:30:30:30:31:30:33:33:32:34", "cltt": 
1586445141, "fqdn-fwd": false, "fqdn-rev": false, "hostname": "", "hw-address": 
"00:00:00:40:17:15", "ip-address": "192.0.2.1", "state": 0, "subnet-id": 1, 
"valid-lft": 3600 }, "result": 0, "text": "IPv4 lease found."

In the database the client-id is saved as a text string: 000103324

Is it possible to get the client-id as a text string from the api?
e.g.:
[ { "arguments": { "client-id": "000103324", "cltt": 1586445141, "fqdn-fwd": 
false, "fqdn-rev": false, "hostname": "", "hw-address": "00:00:00:40:17:15", 
"ip-address": "192.0.2.1", "state": 0, "subnet-id": 1, "valid-lft": 3600 }, 
"result": 0, "text": "IPv4 lease found."


Thanks in advance!

Best regards

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

Reply via email to