2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 12:37:55 +00:00

103 Commits

Author SHA1 Message Date
Razvan Becheriu
63c1bd6bbf [#1434] renamed members and functions 2020-10-22 17:47:14 +03:00
Razvan Becheriu
49b073f12d [#1434] addressed comments
- replaced all occurences to old_cltt and old_valid_lft in unittests
- renamed syncInternalTimestamp to syncExistingLifetime and changed order
of parameters
- renamed updateInternalTimestamp to updateExistingLifetime
- updated doxygen
- added extra check for all occurences of deleteLease (either call
EXPECT or ASSERT), and only use cast to void if explicitly specified
- updated ChangeLog
- updated old_cltt and old_valid_lft on fromElementCommon and added
unittests
- throw exception with different message on memfile with persitence
disabled for easier debugging
2020-10-22 17:46:43 +03:00
Razvan Becheriu
e1d15f93cb [#1434] addressed comments 2020-10-22 17:45:55 +03:00
Michal Nowikowski
78233068df [#1098] adjusted code for release
- update copyright dates
- prepare messages files
- added release entry in ChangeLog file
2020-01-27 19:50:37 +01:00
Razvan Becheriu
430cefea69 [#1073] addressed review 2020-01-27 16:57:36 +02:00
Razvan Becheriu
2d323180d9 [#1073] implemented connection pool for mysql host mgr 2020-01-27 16:57:36 +02:00
Razvan Becheriu
b852520424 [#1040] delete lease only if expire time has not changed 2020-01-17 15:08:16 +02:00
Razvan Becheriu
19e8d65810 [1040] fixed doxygen 2020-01-10 17:41:35 +02:00
Razvan Becheriu
01eba32f6a [1040] separated delete functions 2020-01-10 17:41:35 +02:00
Francis Dupont
17df429a17 [#1044] A 4 -> 6 fix 2019-12-05 16:01:56 +01:00
Francis Dupont
5e11e25c82 [#1044] New doxygen fixes 2019-12-05 15:59:47 +01:00
Razvan Becheriu
cc6c0d3007 [#1044] consistent logging, doxygen and minor changes 2019-12-05 15:33:56 +02:00
Francis Dupont
6cf65c3499 [#1044] Made PgSql lease manager thread safe 2019-12-05 00:12:41 +01:00
Francis Dupont
7d4a426876 [960-mysql-connection-pool] Addressed more cosmetic change request 2019-11-20 09:23:28 +00:00
Francis Dupont
06a8a04e06 [960-mysql-connection-pool] Addressed cosmetic change request 2019-11-20 09:23:28 +00:00
Francis Dupont
a28a5773a3 [960-mysql-connection-pool] Moved schema version checking 2019-11-20 09:23:28 +00:00
Francis Dupont
624db298b1 [960-mysql-connection-pool] Addressed some comments 2019-11-20 09:23:27 +00:00
Francis Dupont
571e19af4b [960-mysql-connection-pool] Updated tests 2019-11-20 09:23:27 +00:00
Francis Dupont
7a3fc2df71 [960-mysql-connection-pool] Finished the pool experiment 2019-11-20 09:23:27 +00:00
Francis Dupont
028037834b [960-mysql-connection-pool] Checkpoint before rebase 2019-11-20 09:23:27 +00:00
Francis Dupont
5bd76e38b5 [393-global-search-through-leases-by-mac-or-hostname-w-o-specifying-a-subnet-id] Added get leases 4 and 4 by hostname to the API 2019-10-25 17:26:23 +02:00
Marcin Siodelski
8300f8c92a [#92,!13] Moved MySqlConnection class to libkea-mysql library. 2018-09-03 03:31:33 -04:00
Marcin Siodelski
4255e8fcc0 [#92,!13] Moved NoSuchLease exception back to dhcpsrv library. 2018-09-03 03:31:33 -04:00
Marcin Siodelski
012a97a87c [#92,!13] Refactored libkea-dhcpsrv to use libkea-database 2018-09-03 03:31:33 -04:00
mayya
a121466e05 [optimize_query] Add new index for query by DUID
Fixes #98
2018-08-13 20:18:04 +02:00
Tomek Mrugalski
64b3502642 [gitlab9] Imported relevant bits from github99
- Covers changes up to 4358737d43ee1b6c8618a1a8aa3cc7273634ed48,
   but without unnecessary things.
2018-08-13 20:16:33 +02:00
Tomek Mrugalski
e29aab3c38 [5682] addLease() parameter is const again 2018-07-30 19:05:19 +02:00
Tomek Mrugalski
e550a2fa6b [5682] Removed const from addLease for other lease backends. 2018-07-30 19:03:18 +02:00
Tomek Mrugalski
5db1f8ff5f [github88] Removed remaining instances of getLeases6(DUID) 2018-07-23 16:04:30 +02:00
Tomek Mrugalski
6afa2376fb [github88] getLeases6(DUID) removed. 2018-07-23 14:36:10 +02:00
mayya
3606c3ba9c fixed minor issues 2018-07-23 13:39:16 +02:00
mayya
2090af48c1 [lib] Extend host structure to support auth keys for reconfiguration.
See issue #83
2018-07-23 13:31:03 +02:00
Marcin Siodelski
ed42dddca9 [5651] Removed unused SQL/CQL queries. 2018-06-28 16:50:07 +02:00
Marcin Siodelski
1911064d76 [5651] Removed lease queries by ranges and total lease count. 2018-06-28 14:02:32 +02:00
Marcin Siodelski
25595be427 [5651] Implemented fetching IPv6 leases by address ranges.
Except Cassandra.
2018-06-26 13:53:01 +02:00
Marcin Siodelski
99da64ffd5 [5651] Implemented fetching IPv6 leases with paging. 2018-06-26 10:27:07 +02:00
Marcin Siodelski
122bb75a7a [5651] Implemented LeaseMgr methods retrieving ranges/pages of IPv4 leases. 2018-06-25 21:47:20 +02:00
Thomas Markwalder
28e33a3c2d [5629] PostgreSQL Lease back end now properly validates schema version
src/lib/dhcpsrv/pgsql_lease_mgr.cc
    PgSqlLeaseMgr::PgSqlLeaseMgr() - now validates schema version before
    preparing SQL statements

    PgSqlLeaseMgr::getVersion() - no longers uses pre-prepared statement
    or formal statement execution error checking
2018-05-31 10:36:26 -04:00
Thomas Markwalder
7614eb8d2b [5629] MySQL Lease back end now validates schema after connecting
src/lib/dhcpsrv/mysql_lease_mgr.*
    MySqlLeaseMgr::MySqlLeaseMgr() - now validates schema
    after connecting

    MySqlLeaseMgr::getVersion()  - no longer relies on
    pre-prepared statement or formal statement execution
    error handling

src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
    LeaseMgrDbLostCallbackTest::testDbLostCallback() - replaced
    use of getVersion() with getLease4() for testing DB usability
2018-05-31 09:41:46 -04:00
Thomas Markwalder
a662ab45d9 [5586] MySQL shared leases stats implemented
src/share/database/scripts/mysql/dhcpdb_create.mysql
    src/share/database/scripts/mysql/dhcpdb_drop.mysql
    src/share/database/scripts/mysql/upgrade_5.2_to_6.0.sh.in
        Added MySQL v4/6 stat tables and triggers

    src/lib/dhcpsrv/memfile_lease_mgr.cc
        Suppress output of of rows with count values of 0

    src/lib/dhcpsrv/mysql_lease_mgr.*
        Added v4/v6 lease stat SQL statements

        MySqlLeaseStatsQuery
        - Added ctor variants that accomodate selection criteria
        - Modified start() to handle three variants of selection

        MySqlLeaseMgr
        - Added start***Query4/6 variants

    src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
        Added tests:
        - TEST_F(MySqlLeaseMgrTest, leaseStatsQuery4)
        - TEST_F(MySqlLeaseMgrTest, leaseStatsQuery6)
2018-05-02 13:36:02 -04:00
Francis Dupont
a0bb7188df [master] Finishing merge of trac5469 (lease6-get-all) 2018-03-31 16:49:15 +02:00
Francis Dupont
d6a49e1f2f Checkpoint: addressed final comment but not yet tested 2018-03-16 14:42:24 +01:00
Razvan Becheriu
e9e8389d45 enabled more tests, implemented hwaddr, hwtype and hwaddr_source in pgsql 2018-02-19 16:14:38 +02:00
Razvan Becheriu
e409c164a6 added missing tables, columns and values in cql schema, ordered declarations and definitions in lease and host managers 2018-02-13 18:28:40 +02:00
Francis Dupont
e0abc5ac7c [5469] Moved to composite index in C++ code too 2018-01-17 19:28:57 +01:00
Francis Dupont
cfe529dff1 [5469] checkpoint (copied with 4 -> 6) 2018-01-13 00:24:41 +01:00
Marcin Siodelski
2732257202 [5468] Implemented getting leases by subnet id and all leases.
This change affects Memfile, MySQL and Postgres backend. These functions
aren't implemented for CQL at this time.
2018-01-09 14:49:14 +01:00
Tomek Mrugalski
574356fa9e [5280] leaseWipe4,6 implemented in lease managers (base and memfile) 2017-08-07 18:25:27 +02:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Andrei Pavel
9082500187 Corrected typos 2016-12-14 16:57:44 +02:00