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

22895 Commits

Author SHA1 Message Date
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
Marcin Siodelski
05033744b8 [4303] Added Changelog entry for #4303. 2016-04-27 19:25:17 +02:00
Marcin Siodelski
942808400e [master] Merge branch 'trac4303' 2016-04-27 17:40:55 +02:00
Marcin Siodelski
97f5350c04 [4303] Removed unnecessary variable initialization. 2016-04-27 17:29:49 +02:00
Marcin Siodelski
aec8c63604 [4303] Address second round of review comments.
- No additional check for HR mode in findReservations
- Additional commentary in the loop collecting host ids.
2016-04-27 15:34:33 +02:00
Thomas Markwalder
a0477d9f40 [master] Added ChangeLog entry 1108 for #4239 2016-04-27 09:14:33 -04:00
Thomas Markwalder
131fcf52f2 [master] Unit tests now use production database scripts
Merges in trac4239.
2016-04-27 08:48:50 -04:00
Francis Dupont
6ad5c07e9e [master] Updated ChangeLog 2016-04-27 14:25:50 +02:00
Francis Dupont
5d1397efc0 [master] regen 2016-04-27 11:44:02 +00:00
Thomas Markwalder
e7bf36660d [4303] Added commentary in dhcp4_srv.h 2016-04-27 07:41:47 -04:00
Francis Dupont
e95f32ebf7 [master] Finish merge of trac4268a (DHCPv4 fields) 2016-04-27 13:32:59 +02:00
Marcin Siodelski
88da7d9cee [4303] Addressed remaining review comments. 2016-04-27 11:29:14 +02:00
Marcin Siodelski
9a34bbb53c [4303] Renamed CfgHostReservations to CfgHostOperations.
This change was suggested during a ticket review.
2016-04-26 17:18:45 +02:00
Shawn Routhier
0b30f90dd6 [trac4268] Tidy up some documentation strings 2016-04-25 22:39:03 -07:00
Francis Dupont
777a9979a2 [4268a] Fixes and cleanups 2016-04-25 16:57:39 +02:00
Francis Dupont
c8ab56f272 [4268a] Updated tests for 4 byte padding 2016-04-25 16:43:28 +02:00
Francis Dupont
f093418dd9 [4268a] untabify 2016-04-25 16:43:08 +02:00
Francis Dupont
bc80ce57a5 [4268a] Padded hlen/htype pkt4 2016-04-25 16:36:10 +02:00
Thomas Markwalder
f116221859 [4239] Addressed review comments
src/lib/dhcpsrv/pgsql_lease_mgr.cc
    Amended commentary for getColumnValue() variants
    Added decription of Uiaid union
    Changed std::system to ::system

src/lib/dhcpsrv/testutils/mysql_schema.cc
    Changed std::system to ::system

src/lib/dhcpsrv/testutils/mysql_schema.h
    Fixed typo

src/lib/dhcpsrv/testutils/pgsql_schema.cc
    Removed extraneous include
    Changed std::system to ::system
2016-04-25 10:35:30 -04:00
Francis Dupont
18542d6e6e [4268a] Added extracted field lengthes 2016-04-25 16:28:20 +02:00
Shawn Routhier
f531624a5f [master] Update changelog with commit number for 4269 2016-04-14 21:18:05 -07:00
Shawn Routhier
48be5f5cea Merge branch 'trac4269' Merge 4269 after updates to fix conflicts 2016-04-15 03:45:08 +00:00
Shawn Routhier
7549535b3a [trac4269] Updates per review comments, basically change some variable names 2016-04-14 21:24:16 +00:00
Marcin Siodelski
440fd061d3 [4303] Values in 'host-reservation-identifiers' used by the servers.
Both DHCPv4 and DHCPv6.
2016-04-14 14:40:55 +02:00
Marcin Siodelski
6e22807310 [4303] Implemented parser for 'host-reservation-identifiers' list. 2016-04-14 11:35:47 +02:00
Marcin Siodelski
af0439c035 [4303] Added class holding configuration of host identifiers.
The identifiers are held on an ordered list and the server will
use them to search for host reservations for each client using
this order.
2016-04-13 12:23:14 +02:00
Marcin Siodelski
1f0f7c7d21 [4303] Servers now search for host reservations using any identifier. 2016-04-13 12:05:25 +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
Marcin Siodelski
79bae943c9 [master] Added ChangeLog entry for pull request #19. 2016-04-12 13:03:12 +02:00
Marcin Siodelski
d260a70d6a [master] Merge branch 'github19' 2016-04-12 12:29:16 +02:00
Marcin Siodelski
0598dca6c3 [github19] Updated AUTHORS file.
Added Angelo as contributor.
2016-04-12 12:27:36 +02:00
Thomas Markwalder
5b978dabe1 [4239] Added drop scripts for both MySQL and Postgresql
Rather than use hard-coded lists or query logic for dropping the
database all MySQL and Posgresql tests use new drop scripts
added to src/bind/admin/scripts.

src/bin/admin/scripts/mysql/dhcpdb_drop.mysql
    - New SQL script to drop a MySQL database

src/bin/admin/scripts/pgsql/dhcpdb_drop.pgsql
    - New SQL script to drop a Postgresql database

src/bin/admin/tests/mysql_tests.sh.in
    - mysql_wipe() - modified to use new drop script

src/bin/admin/tests/pgsql_tests.sh.in
    - pgsql_wipe() modified to use new drop script

src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    - TEST(MySqlOpenTest, OpenDatabase) - added show_err=true
    to destroyMySQLSchema() calls

src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
    - TEST(PgSqlOpenTest, OpenDatabase) - added show_err=true
    to destroyMySQLSchema() calls

src/lib/dhcpsrv/testutils/mysql_schema.cc
    - destroyMySQLSchema(bool show_err) - modified to use the new
    drop script and accept show_err parameter

src/lib/dhcpsrv/testutils/pgsql_schema.cc
    - destroyPgSQLSchema(bool show_err) - modified to use the new
    drop script and accept show_err parameter
2016-04-11 15:16:58 -04:00
Thomas Markwalder
b45da89536 [4239] MySQL and Postgresql unit tests use production schema create scripts
src/lib/dhcpsrv/testutils/schema.h
src/lib/dhcpsrv/testutils/schema.cc
    New files that contain constants and functions common to RDBMS
    testing

src/lib/dhcpsrv/testutils/pgsql_schema.h
src/lib/dhcpsrv/testutils/pgsql_schema.cc
    New files that contain constants and functions needed for
    Posgresql testing

src/lib/dhcpsrv/testutils/mysql_schema.cc
src/lib/dhcpsrv/testutils/mysql_schema.h
    Removed common constants and functions
    Added MYSQL_VALID_TYPE
    runMySQLScript() - new function to submit a script to MySQL

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    PgSqlLease6Exchange - replaced uint32_t iaid member with Uiaid union
    instance.  This permits the value to be safely stored in the database
    as an INT (signed 4-byte value)
    getColumnValue()- added int32_t variant of this method

src/lib/dhcpsrv/tests/Makefile.am
    Removed schema_pgsql_copy.h

src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    Altered tests to use MYSQL_VALID_TYPE

src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
    Moved constants and functions testutils/pgsl_schema.h & cc
2016-04-11 11:51:15 -04:00
Marcin Siodelski
efdaab1b74 [github19] Integrated pull request 19 with unit test fix. 2016-04-11 14:47:28 +02:00
Thomas Markwalder
395104bb79 [4239] Fix constraint-based unit test failure
src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
   - GenericLeaseMgrTest::testLease6HWTypeAndSource() - now uses valid values
     for hardware address source
2016-04-08 10:03:19 -04:00
Thomas Markwalder
9c26b5fa57 [4239] MySQL unit tests in dhcpsrv now use production db create script
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    TEST(MySqlOpenTest, OpenDatabase) - pass in show_err=true for call
    to createMySQLSchema()

src/lib/dhcpsrv/testutils/Makefile.am
    - Added definition of TEST_ADMIN_SCRIPTS_DIR
    - removed schema_mysql_copy.h

src/lib/dhcpsrv/testutils/mysql_schema.cc
    - Removed include of schema_mysql_copy.h
    - destroyMySQLSchema() - now contains destroy_statment[] formerly
    defined in schema_mysql_copy.h
    - createMySQLSchema() - Creates the database through command line
    invocation of MySQL cli, mysql, passing it the production database
    creation script
2016-04-08 09:43:22 -04:00
Shawn Routhier
75063d9b41 [trac4269] Update to put 4 byte strings on the value stack for integers 2016-04-07 23:05:50 -07:00
Shawn Routhier
d02a46f2b7 [master] Update change log to add commit number for trac4265 2016-04-07 20:05:53 -07:00
Thomas Markwalder
9e08099507 [master] Added ChangeLog entry 1104 for #4259. 2016-04-07 07:36:52 -04:00
Thomas Markwalder
45e56d7aa0 [master] DDNS parameter, replace-client-name, now supports multiple modes
Merges in trac4259.
2016-04-07 07:09:59 -04:00
Thomas Markwalder
0c3f04e8df [4259] Address review comments, part II
Fixed minor typos.
2016-04-07 07:05:13 -04:00
Marcin Siodelski
61407bbaad [master] Added ChangeLog entry for #4301. 2016-04-06 22:21:11 +02:00
Marcin Siodelski
cf56fc2a2e [master] Merge branch 'trac4301' 2016-04-06 21:50:05 +02:00
Shawn Routhier
bb00d9d205 Merge branch 'trac4265' Access to options and constants from DHCP6 relay encapsulations 2016-04-06 12:27:22 -07:00
Shawn Routhier
0e4e33caa8 [trac4265] Update copyrights and use HOP_COUNT_LIMIT instead of hardcoded value 2016-04-06 11:41:53 -07:00
Marcin Siodelski
253b032fd0 [4301] Addressed review comments. 2016-04-06 18:20:31 +02:00
Thomas Markwalder
773659ff23 [4259] Addressed review comments
Moved string/enum conversion functions inside D2ClientConfig

    Changed underscores to hypens in replace-client-name values and changed
    all literal values to lower case.

    Fixed minor wording issues in admin guide and new log messages.

    Added commentary and extra error logging to unit tests

    Added test case for invalid value of replace-client-name
2016-04-06 11:41:38 -04:00
Stephen Morris
3b34ad14d0 [master] ChangeLog for trac4293 2016-04-06 15:33:18 +01:00
Stephen Morris
06204c5d34 [master] Merge branch 'trac4293' 2016-04-06 15:28:08 +01:00
Marcin Siodelski
7d93d78cda [4301] DUID and HWAddr classes use strutil to convert text to binary. 2016-04-06 15:00:12 +02:00