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

23242 Commits

Author SHA1 Message Date
Tomek Mrugalski
8efa49794e renamed dscsql to cql
# Conflicts:
#	configure.ac
2016-06-23 14:25:40 +02:00
Tomek Mrugalski
162742b453 renamed dscsql to cql 2016-06-23 14:24:39 +02:00
Razvan Becheriu
11aedc9ce1 fixed kea-admin dscsql lease-init script 2016-06-23 14:22:00 +02:00
Andrei Pavel
8cb4a5787d fixed Makefile 2016-06-23 14:21:39 +02:00
Razvan Becheriu
87e0fd91b0 added optimization for casandra delete and reclaim leases 2016-06-23 14:21:30 +02:00
Razvan Becheriu
77843631ab added support for datastax cassandra 2016-06-23 14:19:28 +02:00
Razvan Becheriu
53c1c6aaaa added support for datastax cassandra 2016-06-23 14:17:38 +02:00
Francis Dupont
927c235419 [4500] copied renew doc to rebind 2016-06-23 00:07:30 +02:00
Francis Dupont
e97d758ee3 [4500] copied renew tests to use rebind without server-id 2016-06-22 23:56:58 +02:00
Thomas Markwalder
8047f97887 [4277] Insert and fetch IPv4 Hosts plus tests work (without options)
src/lib/dhcpsrv/host_data_source_factory.cc
    HostDataSourceFactory::create() - now instantiates PgSqlHostDataSource

src/lib/dhcpsrv/pgsql_host_data_source.cc
    Enabled basic IPv4 host statements and methods

src/lib/dhcpsrv/tests
    New file: pgsql_host_data_source_unittest.cc

src/lib/dhcpsrv/tests/Makefile.am
    Added pgsql_host_data_source_unittest.cc
2016-06-22 07:40:52 -04:00
Thomas Markwalder
7e11527e91 [4277] Pull 4275 changes
Merge branch 'master' into trac4277
2016-06-22 07:28:21 -04:00
Thomas Markwalder
334289573e [4277] Bare bones implementation of PgSqlHostDataSource
src/lib/dhcpsrv
    pgsql_host_data_source.c
    pgsql_host_data_source.h  - new files, preliminary implementation

src/lib/dhcpsrv/Makefile.am
    Added new files pgsql_host_data_source.cc, pgsql_host_data_source.h

src/lib/dhcpsrv/dhcpsrv_messages.mes
    Added log messages DHCPSRV_PGSQL_HOST_DB_GET_VERSION, DHCPSRV_PGSQL_START_TRANSACTION

src/lib/dhcpsrv/pgsql_connection.cc
src/lib/dhcpsrv/pgsql_connection.h
    Added PgSqlTransaction
    Added PgSqlConnection::startTransaction()

src/lib/dhcpsrv/pgsql_exchange.cc
src/lib/dhcpsrv/pgsql_exchange.h
    PsqlBindArray
    - Added storage of conversion strings used for bound values
    - Added add() variants for uint8_t, IOAddress, uint8_t buffer
    - Added templated variant for miscellaneous types

    PgSqlExchange
    - Removed getColumnValue variants for various integers, replaced
    with templated version for miscellaneous types

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    Added todo comment to remember to account for hwaddr columns added to lease6

src/lib/dhcpsrv/tests/pgsql_exchange_unittest.cc
    TEST(PsqlBindArray, basicOperation) - new test to exercise bind functions
2016-06-21 13:21:40 -04:00
Thomas Markwalder
f15c1a1190 [master] Added ChangeLog 1132 for #4275 trac4500_base 2016-06-21 11:56:56 -04:00
Thomas Markwalder
6f8e646bee [master] PostgreSQL schema 3.0, support for host reservations
Merges in branch 'trac4275'
2016-06-21 11:36:03 -04:00
Thomas Markwalder
0433e62cdb [4275] Addressed review comments
bin/admin/tests/pgsql_tests.sh.in
    Typos
share/database/scripts/pgsql/.gitignore
    Added upgrade_2.0_to_3.0.sh

share/database/scripts/pgsql/dhcpdb_create.pgsql
    Added entry for client_id to hosts_identifier
    Added commentrary for dhcp_option_scope
    Added periods to the ends of sentences.
2016-06-21 11:33:16 -04:00
Francis Dupont
162ba87f03 [4110a] Improved process unit test 2016-06-18 01:49:13 +02:00
Francis Dupont
f1f3aca8c6 [4109a] Fixed doxygen 2016-06-17 20:03:02 +02:00
Francis Dupont
98ae38e708 [4110a] Fixed doxygen 2016-06-17 19:57:51 +02:00
Francis Dupont
e3f2659a20 [4110a] Finished the process unit test 2016-06-17 19:44:09 +02:00
Francis Dupont
03b8c3242e [4110a] Simplified exception messages (details are logged as warnings) 2016-06-17 18:18:10 +02:00
Marcin Siodelski
5c3023baab [4321] Implemented unit test for conflict resolution with reservations. 2016-06-17 18:17:02 +02:00
Francis Dupont
49583dc328 [4110a] untabify 2016-06-17 18:16:57 +02:00
Francis Dupont
cbdcd2a80e [4110a] Ported previous code + a lot of improvements (but still things to do) 2016-06-17 18:09:41 +02:00
Marcin Siodelski
cd397470f4 [4321] Added unit test for Solicit after lease acquisition.
The new test uses swapped addresses as hints after acquiring
these addresses in a 4-way exchange. The server ignores hints.
2016-06-17 16:34:35 +02:00
Marcin Siodelski
9df2012346 [4321] Do not replace allocated reserved address in the IA.
If IA contains allocated lease for which there is a reservation
the liftime of this lease is extended. Any newly reserved
lease will be assigned to a different IA, possibly replacing
dynamically allocated lease.
2016-06-17 15:32:20 +02:00
Francis Dupont
498f7775ac [4109a] indent 2016-06-17 15:14:35 +02:00
Francis Dupont
01908d7e1b [4109a] missing text 2016-06-17 13:46:14 +02:00
Francis Dupont
5bde5c0def [4110a] Rebased previous code (checkpoint/not finished) 2016-06-17 02:24:29 +02:00
Francis Dupont
d3ac4aea37 [4109a] Implemented receive unit test using buffer6_send hook 2016-06-17 01:47:14 +02:00
Francis Dupont
1ab0eff8f6 [4109a] Copy the send part (logs and hook) from standard service to 4o6 handler 2016-06-17 00:04:39 +02:00
Francis Dupont
d66833c0b8 [4109a] Rebased 2016-06-16 22:00:41 +02:00
Francis Dupont
bf370fb390 [master] Updated git hash trac4109a_base 2016-06-16 20:28:46 +02:00
Francis Dupont
1ce1cba00a [master] Finished merge of trac4106_update (DHCP4o6 IPC) 2016-06-16 20:27:44 +02:00
Francis Dupont
5d69cd905d [master] Merged trac4106_update (DHCP4o6 IPC) 2016-06-16 20:24:43 +02:00
Francis Dupont
828ef3991e [4106_update] Addressed last comments 2016-06-16 18:48:36 +02:00
Tomek Mrugalski
d8280d80c1 [4106_update] Added comment to createDHCPv4MsgOption() 2016-06-16 15:14:29 +02:00
Marcin Siodelski
388550f7c9 [4321] Fixed broken unit test after Lease6 fix. 2016-06-16 13:52:53 +02:00
Marcin Siodelski
de5f1831ed [4321] Extended host tests for multiple IAs.
Tests now use common function to verify the server's response.
Also, improved commentary in the tests.
2016-06-16 12:32:57 +02:00
Thomas Markwalder
a7db35543a [4275] Postgresql schema 3.0 now matches MySql schema 4.2
Added 4.1 to 4.2 updates from MySQL and created upgrade
script for 2.0 to 3.0

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    - Enclosed the entire script in a single transaction
    - Removed DROP TABLE statements
    - Added host_identifier_type table and data
    - Added dhcp_option_scope table and data
    - Updated unqiue constraints for hosts table
    - Added scope_id and foreign key constraint to dhcp4_options table
    - Added scope_id and foreign key constraint to dhcp6_options table
    - Added unique contraint to ipv6_reservations table
    - Changed 'HWADDR_SOURCE_DOCSIS' to 'HWADDR_SOURCE_DOCSIS_CMTS'
    - Inserted row for 'HWADDR_SOURCE_UKNOWN'

src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
    Added drops for host_identifier_type and  dhcp_option_scope

src/share/database/scripts/pgsql/upgrade_2.0_to_3.0.sh.in
    New file for upgrading Postgresql from 2.0 to 3.0

configure.ac
    Added src/share/database/scripts/pgsql/upgrade_2.0_to_3.0.sh

src/bin/admin/tests/pgsql_tests.sh.in
    - pgsql_upgrade_1_0_to_2_0 - new function which contains all the checks used
    to verify 1.0 to 2.0 upgrade (extracted from pgsql_upgrade_test)
    - pgsql_upgrade_2_0_to_3_0 - new function which contains all the checks used
    to verify 2.0 to 3.0 upgrade
    - pgsql_upgrade_test() - modified use new upgrade check fucntions

src/share/database/scripts/pgsql/Makefile.am
    Added entry for upgrade_2.0_to_3.0.sh
2016-06-15 10:52:14 -04:00
Francis Dupont
2af3e84345 [4106_update] Addressed comments 2016-06-15 16:02:39 +02:00
Francis Dupont
7299124ae6 [master] Updated licence 2016-06-15 15:56:28 +02:00
Thomas Markwalder
67e12a028b [4275] Brought Postgresql schema up to MySQL 4.1 content
Postresql schema now supports host reservations with options,
and lease6 table now includes hardware address and source

src/share/database/scripts/pgsql/dhcpdb_create.pgsql
    Added Schema 3.0 upgrade section:
    - new tables: hosts, dhcp4_options, dhcp6_options,
      ipv6_reservations, lease_hwaddr_source

    - lease4Dumpdata() - results now sorted by lease address

    - lease6 table - added columns hwaddr, hwtype, hwaddr_source

    - lease6DumpHeader() - added labels for new columns
    - lease6DumpData() - added new columns, results now sorted by
      lease address

    - schema_vesion - bumped version to 3

src/share/database/scripts/pgsql/dhcpdb_drop.pgsql
    Added drops of new tables

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    - PgSqlLeaseMgr::PgSqlLeaseMgr() - added logic to detect schema
    mismatch between the code and configured database

src/lib/dhcpsrv/pgsql_lease_mgr.h
    - Bumped PG_CURRENT_VERSION from 2 to 3

src/bin/admin/tests/data/pgsql.lease6_dump_test.reference.csv
    - Reordered entries to account for dump function sort order
    - Added values for new columns on lease6 table

src/bin/admin/tests/pgsql_tests.sh.in
    - pgsql_lease_version_test() - changed expected version to 3.0
    - pgsql_lease6_dump_test() - added new column values to inserted rows
2016-06-14 15:51:08 -04:00
Marcin Siodelski
2ac1a5f0fc [master] Added ChangeLog entry for #3573. fdxhook_base 2016-06-14 09:16:37 +02:00
Marcin Siodelski
c29551e430 [master] Merge branch 'trac3573' 2016-06-14 08:47:41 +02:00
Francis Dupont
e7324065c5 [master] typo 2016-06-13 23:43:40 +02:00
Marcin Siodelski
774b4fa4fe [3573] Addressed review comments.
Decided to not move the HostTest::doExchange class to the test
utils as it would cause circular dependency.
2016-06-13 21:00:50 +02:00
Marcin Siodelski
2e3cedb832 [4321] Added basic test for multiple v6 reservations. 2016-06-13 11:57:53 +02:00
Marcin Siodelski
cb1c570297 [4321] Rename useNA and usePD to requestAddress and requestPrefix. 2016-06-13 11:57:53 +02:00
Marcin Siodelski
fb8666ba0b [4321] Test DHCPv6 client can send multiple IAs. 2016-06-13 11:57:53 +02:00
Marcin Siodelski
3004ceae1c [master] Merge branch 'trac4320' 2016-06-13 11:31:40 +02:00