2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-09 18:35:17 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Marcin Siodelski
bfb36f3d0c [4489] Removed RestrictedConstPtr class. 2016-07-28 21:13:01 +02:00
Marcin Siodelski
ef05ff339c [4489] Added 'readonly' parameter to DbAccessParser. 2016-07-28 13:46:57 +02:00
Marcin Siodelski
4c07c122b2 [4489] Added unit test for read only mode in PgSQL backend. 2016-07-28 13:46:30 +02:00
Marcin Siodelski
65d3817db8 [4489] Added support for read only mode in MySQL HR backend. 2016-07-28 12:56:58 +02:00
Tomek Mrugalski
7e2d2f21c6 [4277] Added several @todos and fixed formatting. 2016-07-25 20:04:20 +02:00
Thomas Markwalder
cac472f52a [4277] Fixed tagged_statements name collision
Wrapped declaration of tagged_statements[] in pgsql_host_data_source.cc
and mysql_host_data_source.cc in anonymous namespace.  They collide
otherwise.
2016-07-14 16:35:12 -04:00
Marcin Siodelski
b8a306a27d [master] Merge branch 'trac4281' 2016-06-02 10:08:58 +02:00
Marcin Siodelski
b76f35a9a2 [4281] Fixed trivial doxygen errors. 2016-06-01 17:35:44 +02:00
Marcin Siodelski
61ca023498 [4281] Addressed further review comments.
- Always invoke mysql_insert_id to retrieve host_id value
- exit if connection with  MySql database is lost
2016-05-30 11:30:26 +02:00
Marcin Siodelski
6efa4faf3a [4281] Added scope_id to the MySQL tables holding options. 2016-05-25 17:52:03 +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
0e9d93b91f [4281] Addressed review comments. 2016-05-25 15:28:41 +02:00
Marcin Siodelski
960a636152 [4281] Renamed MySqlHostExchangeOpts to MySqlHostWithOptionsExchange. 2016-05-17 16:23:51 +02:00
Marcin Siodelski
9a2847d55e [4281] Updated recently modified files with proper commentary.
Also, fixed a couple of minor issues.
2016-05-17 15:23:27 +02:00
Marcin Siodelski
60192f6630 [4281] Creation of a new host in MySQL is wrapped in transaction. 2016-05-16 16:44:09 +02:00
Marcin Siodelski
29bfd06c38 [4281] It is allowed to use formatted option values in the host database. 2016-05-13 10:43:43 +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
Stephen Morris
1d3dac9de3 [4485] Change type of variables to overcome compiler objections
One compiler was objecting to placing the address of a size_t variable
into a variable declared as "unsigned long*".  Changing the
declaration from "size_t" to "unsigned long" fixes the problem.
2016-05-10 15:03:02 +01:00
Marcin Siodelski
7741ab8ce8 [4300] Addressed review comments. 2016-04-05 13:30:37 +02:00
Marcin Siodelski
e4a879e3e2 [4300] Host class holds identifier rather than HW address or DUID. 2016-04-04 10:57:33 +02:00
Marcin Siodelski
634cf7a2d4 [4302] Address further review comments.
- cppcheck issues
- Unique index for prefix and prefix length.
2016-04-01 17:44:32 +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
14cc8ad664 [master] Eliminate doxygen warnings after #4212 and #3696.
Committing on my discretion and with no objections on jabber.
2016-03-24 12:34:43 +01:00
Marcin Siodelski
7948104393 [master] Merge branch 'trac4212' 2016-03-23 13:51:55 +01:00
Marcin Siodelski
34d21432a4 [4212] Addressed review comments. 2016-03-23 12:29:15 +01:00
Francis Dupont
9f47b6511d [4326] untabified 2016-03-22 17:31:30 +01:00
Tomek Mrugalski
82becf56b0 [4212] Compilation fix 2016-03-09 15:50:21 +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
Marcin Siodelski
24b7fb0e6f [4212] Addressed review comments.
- Introduced constants for MySQL fetch results
- Simplified loops in generic SQL unit tests
- Removed some typos
- Removed unused variables
2016-03-01 16:54:18 +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
Jiri Popelka
8548d1b589 Use unsigned long for dhcp_identifier_length
fixes:
mysql_host_data_source.cc:236:33: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
                 bind_[1].length = &dhcp_identifier_length_;
                                 ^
mysql_host_data_source.cc:243:33: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
                 bind_[1].length = &dhcp_identifier_length_;
                                 ^
mysql_host_data_source.cc:344:25: error: invalid conversion from 'size_t* {aka unsigned int*}' to 'long unsigned int*' [-fpermissive]
         bind_[1].length = &dhcp_identifier_length_;
2015-12-23 19:34:09 +01:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00
Thomas Markwalder
2c413e04e0 [4216] Eliminated reuse of log message IDs in hosts database related logging
src/lib/dhcpsrv/dhcpsrv_messages.mes
    Added hosts database specific messages

src/lib/dhcpsrv/host_data_source_factory.cc
src/lib/dhcpsrv/mysql_host_data_source.cc
    Updated log statements with hosts database messages
2015-12-09 14:51:36 -05:00
Tomek Mrugalski
01f0cb4928 [4212] Skeleton for IPv6 reservations support added. 2015-12-04 21:33:52 +01:00
Tomek Mrugalski
e05819fbce [4217] HostMgr now uses exactly one identifier in get4() query
- Includes fix in AllocEngine6Test ctor, provided by Thomas
2015-12-03 17:47:41 +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