mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 16:26:59 +00:00
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:
parent
102d017ed5
commit
3d37ac0a2d
8 changed files with 92 additions and 4 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
<active_lease>
|
||||
<ip>10.0.0.5</ip>
|
||||
<macaddress>00:00:00:00:00:00</macaddress>
|
||||
<starts></starts>
|
||||
<ends></ends>
|
||||
<hostname></hostname>
|
||||
</active_lease>
|
||||
<subnet>
|
||||
<location>All networks</location>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue