BLQ: query-by-link-address and shared networks
This is a continuation of #3149 (closed). It was brought to our attention that the QUERY_BY_LINK_ADDRESS
does not return PD leases properly in some circumstances. The algorithm we came up with is as follows:
Proposed algorithm for QUERY_BY_LINK_ADDRESS:
-
select subnet for specified address, pick its subnet-id
-
(if shared network is used, select all subnet-ids for all subnets in the shared network) - this behavior should be configurable (extra parameter that governs if this step should be done or not).
-
return all leases (NA, PD) with the matching subnet-id
Steps 1 and 3 are to be implemented in #3149 (closed). This ticket is about extending the code with shared network scenario. Once implemented, it should be configurable if the leases from shared network should be returned or not. The parameter could be global.