Opened 22 months ago

#5544 new enhancement

Extend leaseX-get-all to return number of leases as integer

Reported by: tomek Owned by:
Priority: medium Milestone: Kea1.x
Component: management API Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

lease4-get-all and lease6-get-all commands return all leases for specific subnets. The response contains number of leases returned, but only in text form:

"text": "2 IPv4 lease(s) found."

This information should also be returned as integer, so it is easier to handle (without needing to parse the string). Actually, this information can be obtained rather easily by counting the number of entries in the leases list.

Nevertheless, this small enhancement was requested by a user, so we should consider implement it.

Subtickets

Change History (0)

Note: See TracTickets for help on using tickets.