lease4-get-all has incorrect count in the case of multiple subnets
It seems that in the case of lease4-get-all
output, when there are multiple subnets with used addresses, that the final count only includes the number of leases from that subnet. (Please note: This is as reported by output obtained from version 2.2.1 by someone else. I don't personally have a way to confirm this as I don't have a way, in my testbed, to setup multiple subnets and have addresses used in all of them.)
For example:
subnet 1 has 10 addresses in use. subnet 2 has 20 and subnet 3 has 5
When performing a lease4-get-all
without a "subnets" argument, all leases from all three subnets will be included but the final text will say this:
'result': 0,
'text': '5 IPv4 lease(s) found.'}]
even though the actual number of leases returned, confirmed by inspecting the output, is 35. See SF1234 for full details.