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

228 Commits

Author SHA1 Message Date
Razvan Becheriu
5fd9677be6 Merge remote-tracking branch 'andrei-remote/cassandra-update' into HEAD 2017-12-12 13:41:58 +02:00
Francis Dupont
f898544564 [5351] Checkpoint: todo host DB tests 2017-12-03 19:23:00 +01:00
Francis Dupont
869ab1ed57 [5351] Checkpoint: added user context in options stored in DBs, todo add tests 2017-12-01 09:35:18 +01:00
Francis Dupont
6e0add84ab [5266] Added *.sh from *.sh.in to distclean 2017-10-20 18:02:28 +02:00
Andrei Pavel
e37a6c29bb Merge branch 'isc-master' into cassandra-host-data-source 2017-08-17 20:30:41 +03:00
Josh Soref
07f40e4422 spelling: performance 2017-07-23 15:28:00 -04:00
Josh Soref
3331fda2e3 spelling: initial 2017-07-23 13:28:07 -04:00
Wlodek Wencel
2d2bc63de2 [master] scripts upgrade_5.0_to_5.1.sh upgrade_3.0_to_3.1.sh will be now installed 2017-05-18 14:20:41 +02:00
Tomek Mrugalski
88555d8f23 [master] Merge branch 'trac5208a' (preparations for host_cmds hook) 2017-04-24 21:29:15 +02:00
Marcin Siodelski
20d70ed0b3 [5208] Multiple fixes as a result of review.
The most notable change is the update of the MySQL trigger which
deletes options as a consequence of deletion of the host.
2017-04-24 16:19:37 +02:00
Tomek Mrugalski
db96e406b9 [5195] flex-id value added to know identifiers list. 2017-04-20 15:46:24 +02:00
Marcin Siodelski
acedfa970b [5102] Addressed review comments.
- Removed MySQL indexes added accidentally.
- Fixed a commentary in a DORA unit tests.
2017-04-20 11:27:34 +02:00
Marcin Siodelski
ec873ef2f2 [5102] Updated MySQL and PgSQL schemas with 'client-id' host id type. 2017-04-14 23:39:13 +02:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Andrei Pavel
8c71bbbc9d Cassandra update
Replaced unrecommended backticks with $() in cql_version() in bash scripts.

*_execute() and *_execute_script() functions from src/bin/admin/admin-utils.sh now pass the parameters to the underlying backend binary whenever they are given rather than when there are 2 or more.

Corrected cql_version() return error in src/bin/admin/admin-utils.sh.

Removed redundant "USE" from cql_init() in src/bin/admin/kea-admin.in.

Inserted a newline in src/bin/admin/tests/Makefile.am to separate unrelated targets.

Style changes in cql_*_test() functions in src/bin/admin/tests/cql_tests.sh.in.

src/bin/admin/tests/dhcpdb_create_1.0.cql:
    "perfromance" typo
    Added comment headers
    Added index on expire since it is used in WHERE clauses (further performance testing may be required)
    Removed dhcp4_options and dhcp6_options table since they are not required for Cassandra

Added DROP INDEX in src/share/database/scripts/cql/dhcpdb_drop.cql.

Added sql_common.h
Added cql_exchange.h and cql_exchange.cc which mediate communication with Cassandra.
Added cql_lease_mgr.h and cql_lease_mgr.cc

Parameterized reconnect-wait-time, connect-timeout, request-timeout, tcp-keepalive, tcp-nodelay for Cassandra in kea.conf. Changes are in src/lib/dhcpsrv/cql_connection.cc and src/lib/dhcpsrv/parsers/dbaccess_parser.cc.

Reformated x != NULL into !x as specified in the Kea style guidelines

src/lib/dhcpsrv/cql_connection.cc:
    Added range check for port
    Added CqlConnection:setConsistency
    Added CqlConnection::startTransaction  which is a noop
    Added CqlTransaction method implementations.
    Corrected ending brace of namespace declaration, it doesn't need semicolon.

src/lib/dhcpsrv/cql_connection.h:
    Added explicit on CqlConnection constructor. Unlikely that this class will ever be derived, but it's good practice.
    Changed some comments.
    Added CqlTransaction class definition.

src/lib/dhcpsrv/cql_lease_mgr.cc:
    Formatted the entire code.
    Changed data types to cass_ types.

Added some log messages.

Moved structs, enums and typedefs from src/lib/dhcpsrv/lease_mgr.h to src/lib/dhcpsrv/sql_common.h

Added some missing tests in src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
2017-01-11 14:14:43 +02:00
Andrei Pavel
9082500187 Corrected typos 2016-12-14 16:57:44 +02:00
Marcin Siodelski
74d4720d29 [github30] Updated MySQL upgrade scripts to use single quote. 2016-09-15 20:23:59 +02:00
Yusef Shaban
cf0be27ae9 Update dhcpdb_create.mysql
fixing " to ' as mysql will throw errors about "
2016-09-12 15:09:03 -07:00
Marcin Siodelski
90841f377e [4562] Updated MySQL upgrade scripts to schema version 5.0. 2016-08-26 17:17:57 +02:00
Marcin Siodelski
9b79fe005d [master] Merge branch 'trac4552' 2016-08-25 18:18:07 +02:00
Marcin Siodelski
db705b7435 [4552] Added siaddr, sname and file into the hosts table. 2016-08-23 12:09:36 +02:00
Marcin Siodelski
4a8efcb45a [4489] Addressed review comments.
The only review item not addressed with this commit is the
implementation of unit test that operates on the read only
database, i.e. the database containing tables on which the
given user only has SELECT privileges.
2016-08-17 11:22:24 +02:00
Francis Dupont
75a8350485 [master] Fixed rights of non-executable regular files 2016-07-08 20:38:15 +02:00
Tomek Mrugalski
d47b8dfe5a change requests from isc
# Conflicts:
#	src/bin/admin/tests/data/pgsql.lease6_dump_test.reference.csv
2016-06-23 14:30:29 +02:00
Tomek Mrugalski
a47f78f491 renamed classes and files, fixed issues, added comments
# Conflicts:
#	ChangeLog
#	src/lib/dhcpsrv/cfg_hosts.cc
2016-06-23 14:27:04 +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
aae4a9db6b [4281] Alterations to MySQL host database schema.
- Option code in dhcp6_options table is now SMALLINT.
- Subnet ids are now unsigned.
2016-04-28 11:33:43 +02:00
Thomas Markwalder
0b4ec962af [4239] Moved schema scripts to src/share/database/scripts
Moved schema scripts into a new common location:

        src/share/database/scripts

    to make them accessible to both kea-admin and dhcpsrv testing
2016-04-12 11:14:52 -04:00