Actions
Feature #19666
closedReturn record type for DHCP recorts
Description
We do not show if a record is type of lease or reservation. This can be useful information. I am filing this for #19634 bug but I might end up not use this information, still I would like Smart Proxy to report this.
It looks like we have also a regression when less information is returned, I can include this in the patch as well.
Smart-Proxy 1.15:
[lzap@lzapx smart-proxy]$ curl-proxy /dhcp/192.168.122.0/192.168.122.6
{
"hostname": "lease-525400130513",
"ip": "192.168.122.6",
"mac": "52:54:00:13:05:13"
}
Smart-Proxy 1.14:
[lzap@lzapx smart-proxy]$ curl-proxy /dhcp/192.168.122.0/192.168.122.6
{
"starts": "2017-05-24 12:52:59 UTC",
"ends": "2017-05-24 13:02:59 UTC",
"state": "active",
"next_state": "free",
"mac": "52:54:00:13:05:13",
"subnet": "192.168.122.0/255.255.255.0",
"ip": "192.168.122.6"
}
Actions