diff options
author | Marcin Siodelski <marcin@isc.org> | 2022-10-20 18:10:47 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2022-11-21 08:52:02 +0100 |
commit | 9fb382f6769f786809446a77553c1fce21333e9c (patch) | |
tree | a55212ae39bdf11d0714ed2f380b9788c8a5787f /src/bin/dhcp6/tests/dhcp6_test_utils.cc | |
parent | [#2348] Allocation states in separate classes (diff) | |
download | kea-9fb382f6769f786809446a77553c1fce21333e9c.tar.xz kea-9fb382f6769f786809446a77553c1fce21333e9c.zip |
[#2348] Allocator is a subnet property
Diffstat (limited to 'src/bin/dhcp6/tests/dhcp6_test_utils.cc')
-rw-r--r-- | src/bin/dhcp6/tests/dhcp6_test_utils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/dhcp6/tests/dhcp6_test_utils.cc b/src/bin/dhcp6/tests/dhcp6_test_utils.cc index 8aa96aed61..629a3626eb 100644 --- a/src/bin/dhcp6/tests/dhcp6_test_utils.cc +++ b/src/bin/dhcp6/tests/dhcp6_test_utils.cc @@ -56,8 +56,8 @@ BaseServerTest::~BaseServerTest() { Dhcpv6SrvTest::Dhcpv6SrvTest() : NakedDhcpv6SrvTest(), srv_(0), multi_threading_(false) { - subnet_ = isc::dhcp::Subnet6Ptr(new isc::dhcp::Subnet6(isc::asiolink::IOAddress("2001:db8:1::"), - 48, 1000, 2000, 3000, 4000)); + subnet_ = Subnet6::create(isc::asiolink::IOAddress("2001:db8:1::"), + 48, 1000, 2000, 3000, 4000); subnet_->setIface("eth0"); pool_ = isc::dhcp::Pool6Ptr(new isc::dhcp::Pool6(isc::dhcp::Lease::TYPE_NA, @@ -272,8 +272,8 @@ Dhcpv6SrvTest::testRenewBasic(Lease::Type type, // and then be reused. if (expire_before_renew) { CfgMgr::instance().clear(); - subnet_.reset(new Subnet6(IOAddress("2001:db8:1:1::"), - 48, 1000, 2000, 3000, 4000)); + subnet_ = Subnet6::create(IOAddress("2001:db8:1:1::"), + 48, 1000, 2000, 3000, 4000); subnet_->setIface("eth0"); pool_.reset(new Pool6(Lease::TYPE_NA, existing, existing)); subnet_->addPool(pool_); |