]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[418-cb_cmds-embedded-commands] Fixed pool type
authorFrancis Dupont <fdupont@isc.org>
Sat, 13 Jul 2019 02:50:56 +0000 (04:50 +0200)
committerFrancis Dupont <fdupont@isc.org>
Mon, 12 Aug 2019 13:04:30 +0000 (09:04 -0400)
src/lib/dhcpsrv/testutils/test_config_backend_dhcp4.cc

index 3b70d981a7e908d94e0278060a47210c099fceab..edf2ea6f2f40813a1955ed90bdaf7b5d3e36768e 100644 (file)
@@ -708,7 +708,7 @@ TestConfigBackendDHCPv4::createUpdateOption4(const db::ServerSelector& server_se
     auto not_in_selected_servers = false;
     for (auto subnet : subnets_) {
         // Get the pool: if it is not here we can directly go to the next subnet.
-        auto pool = subnet->getPool(Lease::TYPE_NA, pool_start_address);
+        auto pool = subnet->getPool(Lease::TYPE_V4, pool_start_address);
         if (!pool) {
             continue;
         }