2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-25 11:17:23 +00:00

45 Commits

Author SHA1 Message Date
Marcin Siodelski
99c44ffd31 [#1428] Allow non-unique IPs in MySQL and PgSQL
Introduced new host API function which allows for configuring selected
backends to accept non-unique IP reservations for multiple hosts. Support
for it was added in MySQL, Postgres and Kea config file. It is not
supported in Cassandra. New migrations for MySQL and Postgres have been
created.
2020-10-05 13:14:57 +00:00
Francis Dupont
f3e8356a41 [#1163] Checkpoint: updated API 2020-09-22 10:13:23 +02:00
Michal Nowikowski
ba41c187b5 [#1098] updated more copyright dates 2020-01-27 19:52:58 +01:00
Razvan Becheriu
2d323180d9 [#1073] implemented connection pool for mysql host mgr 2020-01-27 16:57:36 +02:00
Francis Dupont
fbaa30d93d [392-search-of-reservations-by-hostname] Addressed some comments 2019-10-15 11:45:32 +02:00
Francis Dupont
34ed167195 [392-search-of-reservations-by-hostname] Checkpont: add new methods - tests to write 2019-10-15 11:45:32 +02:00
Francis Dupont
3d94a41a77 [313-return-a-list-of-all-reservations-by-subnet-id] Added getPage[46] 2019-01-29 04:49:05 -05:00
Francis Dupont
55e2828cf2 [313-return-a-list-of-all-reservations-by-subnet-id] Finished the getAll[46] implementation 2019-01-29 04:49:05 -05:00
Francis Dupont
2a5750c931 [313-return-a-list-of-all-reservations-by-subnet-id] Added getAll[46] by subnet - checkpoint of the day 2019-01-29 04:49:05 -05:00
Marcin Siodelski
8300f8c92a [#92,!13] Moved MySqlConnection class to libkea-mysql 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
Marcin Siodelski
7b2555aa66 [#92,!13] New libkea-database library created. 2018-09-03 03:31:33 -04:00
Thomas Markwalder
15c34afdba [master] Lease and host back ends now validate schema version during open
Merge branch 'trac5629'
2018-06-01 08:25:25 -04:00
Thomas Markwalder
3a4e989317 [5629] MySQL and PostgreSQL host backends now verify schema version
src/lib/dhcpsrv/mysql_host_data_source.cc
    MySqlHostDataSourceImpl::getVersion() - new function to
    fetch version accessible to impl constructor

    MySqlHostDataSourceImpl() - added schema validation after
    connecting

    MySqlHostDataSource::getVersion() - new uses impl method

src/lib/dhcpsrv/pgsql_host_data_source.cc
    PgSqlHostDataSourceImpl()) - added schema validation after
    connecting

    PgSqlHostDataSourceImpl::getVersion() - no longer uses
    pre-prepared statement
2018-05-31 11:51:19 -04:00
Francis Dupont
e018f8e6c9 [5563] Changes done and compile 2018-05-24 16:51:07 +02:00
Wlodek Wencel
4a26b2fe27 [master] Copyright update to 2018 2018-05-24 13:17:10 +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
Razvan Becheriu
4350f3974b Merge remote-tracking branch 'isc-kea/master' into HEAD 2017-12-12 14:17:53 +02:00
Francis Dupont
fe2de23357 [5371] Fixed doxygen errors 2017-10-07 18:28:56 +02:00
Andrei Pavel
6e5ddf2725 minor changes:
* dynamic exception specifications are deprecated in C++11 (throw on
function definition)
    * INSTANTIATE_TEST_CASE_P gives a warning about variadic arguments
having at least one argument. The IntToString functor is what it
requires for test cases to be displayed correctly.
    * Options should be merged with formatted option included in the
identifier. This was unit-tested, but masked by an incorrect csv-format
value in test data. Merge not used in actual code, but used in
Cassandra PR.
    * ifdefs in MACROS are not portable
    * added missing doxygen comments
2017-08-18 10:34:26 +03:00
Josh Soref
19bcf4dc22 spelling: identifier 2017-07-23 13:26:58 -04:00
Tomek Mrugalski
313d980ed0 [5208a] return comments updated 2017-04-24 19:56:47 +02:00
Tomek Mrugalski
8b561ef854 [5208a] delete methods implemented in host data sources 2017-04-22 21:56:33 +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
Marcin Siodelski
8cce1aa713 [5009] Implemented get6(subnet_id, address) function for SQL backends.
Also removed uint32_t cast operator from IOAddress to remove
ambiguity when calling this new function.
2016-09-20 09:29:06 +02:00
Marcin Siodelski
bfb36f3d0c [4489] Removed RestrictedConstPtr class. 2016-07-28 21:13:01 +02:00
Marcin Siodelski
65d3817db8 [4489] Added support for read only mode in MySQL HR backend. 2016-07-28 12:56:58 +02:00
Marcin Siodelski
b76f35a9a2 [4281] Fixed trivial doxygen errors. 2016-06-01 17:35:44 +02:00
Marcin Siodelski
abfb2c7c1f [4281] Moved MySQL host data source statements to impl class. 2016-05-25 16:48:31 +02:00
Marcin Siodelski
718643a83a [4281] Extended MySQL host data source with DHCPv4 and DHCPv6 options.
Missing things:
- proper commentary
- formatted values for options
- rollback host insertion when failing to add reservation or option
2016-05-12 18:31:07 +02:00
Marcin Siodelski
9900e40c3a [4302] MySQL database upgraded to version 4.2.
- Added new table host_identifier_type
- Added foreign key on hosts table referencing
  host_identifier_type
- Indexes on hosts table are now unique
2016-03-31 20:29:20 +02:00
Marcin Siodelski
356f261e36 [4302] Addressed review comments.
- Rename GET_HOST_HWADDR_DUID to GET_HOST_DHCPID
- Fixes and clarifications in doxygen documentation
2016-03-31 13:45:44 +02:00
Marcin Siodelski
f551e0e480 [4302] Refactored host data source classes.
The updated API exposes functions which retrieve hosts
by any identifier and identifier type, rather than DUID
or HW address.
2016-03-24 14:56:36 +01:00
Marcin Siodelski
7948104393 [master] Merge branch 'trac4212' 2016-03-23 13:51:55 +01:00
Francis Dupont
9f47b6511d [4326] untabified 2016-03-22 17:31:30 +01:00
Marcin Siodelski
7284e68744 [4212] Restructured MySQL Exchange classes in host data source. 2016-03-08 12:14:44 +01:00
Marcin Siodelski
eca64697cb [4212] Using single query to retrieve hosts and IPv6 reservations. 2016-03-02 12:18:04 +01:00
Marcin Siodelski
c89e1b38fe [4212] Renamed two variables to adhere to our coding guidelines.
Also, use new constant for checking fetch failure in MySQL.
2016-03-02 00:05:11 +01:00
Tomek Mrugalski
51610a48a3 [4212] Applied two patches by Adam:
- addressed most review comments
 - added new unit-tests
 - remove reservation for temporary addresses TA
 - updated AUTHORS file
2016-02-08 20:12:36 +01:00
Tomek Mrugalski
4e9fb31a3d [4212] Patch as provided by Adam Kalmus
- Tomek verified that it applied cleanly, compiled and
   unit-tests passed.
2016-01-27 15:58:07 +01:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00
Tomek Mrugalski
01f0cb4928 [4212] Skeleton for IPv6 reservations support added. 2015-12-04 21:33:52 +01:00
Marcin Siodelski
00186aa513 [master] Include <mysql.h> rather than <mysql/mysql.h>
This prevents compilation failure on OS-X. Reviewed and approved
on jabber.
2015-12-01 09:50:22 +01:00
Tomek Mrugalski
65efc0da7f [3682_rebase] Merge branch 'trac3682' into trac3682_rebase
# Conflicts:
#	src/lib/dhcpsrv/mysql_lease_mgr.cc
#	src/lib/dhcpsrv/mysql_lease_mgr.h
2015-11-30 21:26:25 +01:00