add start, end and hostname printing support for xml and json

In short it gets these parameters and prints them in json and xml formats.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Belkacem Daheb 2023-07-26 09:20:32 +01:00 committed by Sami Kerola
parent 102d017ed5
commit 3d37ac0a2d
No known key found for this signature in database
GPG key ID: 0D46FEF7E61DBB46
8 changed files with 92 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"active_leases": [
{ "ip":"10.0.0.5", "macaddress":"00:00:00:00:00:00" }
{ "ip":"10.0.0.5", "macaddress":"00:00:00:00:00:00", "starts":"", "ends":"", "hostname":"" }
],
"subnets": [
{ "location":"All networks", "range":"10.0.0.1 - 10.0.0.10", "first_ip":"10.0.0.1", "last_ip":"10.0.0.10", "defined":10, "used":1, "touched":0, "free":9, "percent":10, "touch_count":1, "touch_percent":10, "status":0 }