Fetching host reservations without a need for subnet id
I have the following use case in Stork. I start to monitor a particular Kea instance. After I make sure that the host_cmds hooks library is loaded I want to be able to fetch all host reservations stored in the db for this Kea app. We have several commands to do it. I could either use
reservation-get-page. The latter seems better because with the presence of large number of reservations the former could get stuck for a long time and impact the DHCP server's ability to serve the clients. However, neither of these commands allow me to fetch all hosts regardless of the subnet id they belong to. I am not so much interested in getting the hosts for individual subnets, because I want to fetch all hosts. Also, if there are many subnets, each with low number of reservations, such fetch becomes very inefficient as I would send many commands with little or (worse!) no data carried in the response.
I want to make subnet-id parameter optional in
reservation-get-page commands, so as I can get all reservations from the database with the predictable number of hosts returned for each command issued.