diff options
author | Marcin Siodelski <marcin@isc.org> | 2018-02-27 19:52:10 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2018-02-27 19:52:10 +0100 |
commit | ad313e8694e8cd7df166183f88eaede43c02452d (patch) | |
tree | dba313335a62fd10a59d6dc3b31c36592711b8f5 /src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc | |
parent | [5437] HR_DISABLED option handling moved to subnet level. (diff) | |
download | kea-ad313e8694e8cd7df166183f88eaede43c02452d.tar.xz kea-ad313e8694e8cd7df166183f88eaede43c02452d.zip |
[5437] Select last used subnet for new allocations in DHCPv6.
Diffstat (limited to 'src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc')
-rw-r--r-- | src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc b/src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc index e96ebbd37b..52a5aac6b7 100644 --- a/src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc +++ b/src/lib/dhcpsrv/tests/alloc_engine6_unittest.cc @@ -1,4 +1,4 @@ -// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -2448,6 +2448,10 @@ TEST_F(SharedNetworkAlloc6Test, solicitSharedNetworkPoolClassification) { // offer an address from the pool1_. ctx4.query_->addClass(ClientClass("cable-modem")); + // Restrict access to pool2 for this client, to make sure that the + // server doesn't accidentally get a lease from this pool. + pool2_->allowClientClass("telephone"); + AllocEngine::findReservation(ctx4); ASSERT_NO_THROW(lease = expectOneLease(engine_.allocateLeases6(ctx4))); ASSERT_TRUE(lease); |