- 04 Jul, 2022 1 commit
-
-
Razvan Becheriu authored
-
- 01 Jul, 2022 5 commits
-
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Razvan Becheriu authored
-
- 30 Jun, 2022 5 commits
-
-
Razvan Becheriu authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
- 29 Jun, 2022 24 commits
-
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Andrei Pavel authored
-
Thomas Markwalder authored
modified: memfile_lease_mgr.h
-
Thomas Markwalder authored
-
Thomas Markwalder authored
src/lib/dhcpsrv/memfile_lease_limits.cc ClassLeaseCounter::getLeaseClientClasses() - improved error handling src/lib/dhcpsrv/memfile_lease_limits.h ClassLeaseCounter::getLeaseClientClasses() - changed from const to static src/lib/dhcpsrv/memfile_lease_mgr.cc Memfile_LeaseMgr::checkLimits4() fixed count type Memfile_LeaseMgr::checkLimits6() fixed exception dhcpsrv/memfile_lease_mgr.h fixed typos src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc GenericLeaseMgrTest::testLeaseLimits4() GenericLeaseMgrTest::testLeaseLimits6() - removed unecesary CfgMgr logic src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc TEST_F(ClassLeaseCounterTest, adjustClassCountsTest4) TEST_F(ClassLeaseCounterTest, adjustClassCountsTest6) TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) - new tests src/lib/dhcpsrv/memfile_lease_mgr.cc Memfile_LeaseMgr::getClassLeaseCount() - added mutex src/lib/dhcpsrv/memfile_lease_mgr.h Added thread-safe comments
-
Thomas Markwalder authored
src/lib/dhcpsrv/memfile_lease_limits.cc ClassLeaseCounter::getLeaseClientClasses() - improved error handling src/lib/dhcpsrv/memfile_lease_limits.h ClassLeaseCounter::getLeaseClientClasses() - changed from const to static src/lib/dhcpsrv/memfile_lease_mgr.cc Memfile_LeaseMgr::checkLimits4() fixed count type Memfile_LeaseMgr::checkLimits6() fixed exception dhcpsrv/memfile_lease_mgr.h fixed typos src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc GenericLeaseMgrTest::testLeaseLimits4() GenericLeaseMgrTest::testLeaseLimits6() - removed unecesary CfgMgr logic src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc TEST_F(ClassLeaseCounterTest, adjustClassCountsTest4) TEST_F(ClassLeaseCounterTest, adjustClassCountsTest6) TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) - new tests
-
Thomas Markwalder authored
src/lib/dhcpsrv/lease_mgr.h Make LeaseMgr::getClassLeaseCount() const src/lib/dhcpsrv/memfile_lease_limits.* Add ClassLeaseCounter()::getConstCountMap() make size() const src/lib/dhcpsrv/memfile_lease_mgr.* make Memfile_LeaseMgr::getClassLeaseCount() const Memfile_LeaseMgr::checkLimits4() Memfile_LeaseMgr::checkLimits6() Memfile_LeaseMgr::getSubnetStat() Memfile_LeaseMgr::getLeaseLimit() - new functions src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc GenericLeaseMgrTest::testLeaseLimits4() GenericLeaseMgrTest::testLeaseLimits6() - use CfgMgr to update subent stats src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc Enable checkLimits tests
-
Thomas Markwalder authored
Use "client-classes" not "classes" in user-context src/lib/dhcpsrv/memfile_lease_limits.cc src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc
-
Thomas Markwalder authored
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc GenericLeaseMgrTest::testLeaseLimits6() - fixed error created one I originally split testLeaseLimits() src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc split TEST_F(MySqlLeaseMgrTest, checkLimits) into v4 and v6 tests
-
Thomas Markwalder authored
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.* Split GenericLeaseMgrTest::testLeaseLimits() into: GenericLeaseMgrTest::testLeaseLimits4() GenericLeaseMgrTest::testLeaseLimits6() src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc TEST_F(MemfileLeaseMgrTest, isJsonSupported4) TEST_F(MemfileLeaseMgrTest, isJsonSupported6) TEST_F(MemfileLeaseMgrTest, DISABLED_checkLimitsNull4) TEST_F(MemfileLeaseMgrTest, DISABLED_checkLimitsNull6) TEST_F(MemfileLeaseMgrTest, DISABLED_checkLimits4) TEST_F(MemfileLeaseMgrTest, DISABLED_checkLimits6) - new tests src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc TEST_F(MySqlLeaseMgrTest, DISABLED_classLeaseCount4) TEST_F(MySqlLeaseMgrTest, DISABLED_classLeaseCount6_NA) TEST_F(MySqlLeaseMgrTest, DISABLED_classLeaseCount6_PD) - new tests
-
Thomas Markwalder authored
src/lib/dhcpsrv/memfile_lease_limits.h Commentary fixes rc/lib/dhcpsrv/memfile_lease_mgr.cc Memfile_LeaseMgr::updateLease4Internal() Memfile_LeaseMgr::updateLease6Internal() - adjust counts after replacing the lease in store Memfile_LeaseMgr::recountClassLeases4() Memfile_LeaseMgr::recountClassLeases6() - remove use of index src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc Fix wrong lease states.
-
Thomas Markwalder authored
src/lib/dhcpsrv/memfile_lease_limits.cc ClassLeaseCounter::getLeaseClientClasses() - looks for classes in "ISC" src/lib/dhcpsrv/memfile_lease_limits.h ClassCountMap& getCountMap() - reordered return logic src/lib/dhcpsrv/memfile_lease_mgr.h override and virtual use correction src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.* GenericLeaseMgrTest::makeContextWithClasses() - embed in "ISC" element src/lib/dhcpsrv/tests/memfile_lease_limits_unittest.cc makeContextWithClasses() - embed in "ISC" element src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc add using namespace data
-
-
-
Thomas Markwalder authored
modified: memfile_lease_mgr_unittest.cc
-
Thomas Markwalder authored
Moved tests from memfile_lease_mgr_unittests.* to generic_lease_mgr_unitest.*
-
Thomas Markwalder authored
-
Thomas Markwalder authored
src/lib/dhcpsrv/lease_mgr.* LeaseMgr - added virtual methods: ::recountClassLeases4() ::recountClassLeases6() ::getClassLeaseCount() src/lib/dhcpsrv/memfile_lease_mgr.* Memfile_LeaseMgr ::addLeaseInternal() ::updateLeaseXInternal() ::deleteLeaseInternal(const Lease4Ptr& lease) { - added calls to add/remove leases from count map ::recountClassLeases4() ::recountClassLeases6() ::getClassLeaseCount() src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc Added boolean flag to makeLease4 and makeLease6 src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc New tests: TEST_F(MemfileLeaseMgrTest, classLeaseCount4) TEST_F(MemfileLeaseMgrTest, classLeaseCount6_NA) TEST_F(MemfileLeaseMgrTest, classLeaseCount6_PD) TEST_F(MemfileLeaseMgrTest, classLeaseRecount4) TEST_F(MemfileLeaseMgrTest, classLeaseRecount6)
-
Thomas Markwalder authored
Implemented dhcp::ClassLeaseCounter, a container for managing lease counts per class src/lib/dhcpsrv/memfile_lease_limits.h src/lib/dhcpsrv/memfile_lease_limits.cc New files that support class lease counting src/lib/dhcpsrv/Makefile.am added memfile_lease_limits.cc, memfile_lease_limits.h src/lib/dhcpsrv/lease.h added Lease::getType() because I am sick of it not existing src/lib/dhcpsrv/memfile_lease_limits_unittest.cc New file src/lib/dhcpsrv/tests/Makefile.am added memfile_lease_limits_unittest.cc
-
- 28 Jun, 2022 1 commit
-
-
Marcin Godzina authored
-
- 27 Jun, 2022 4 commits
-
-
Marcin Godzina authored
-
Marcin Godzina authored
-
Marcin Godzina authored
-
Marcin Godzina authored
-