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

22211 Commits

Author SHA1 Message Date
Shawn Routhier
fdcc73afe7 Merge branch 'trac3576' Add PXE options
Add several options PXE uses, also add the OptionOpaqueDataTuples
class to provide support for the parameter list option.

Conflicts:
	ChangeLog
2015-10-02 12:01:32 -07:00
Tomek Mrugalski
52de9ac39f [3985] Several minor tweaks, docs updated. 2015-10-02 20:35:02 +02:00
Shawn Routhier
214982d850 [trac3576] Fix typo in change log 2015-10-02 11:18:39 -07:00
Marcin Siodelski
cfbd62e006 [3974] Attached parser for expired leases processing to global parser. 2015-10-02 15:36:40 +02:00
Marcin Siodelski
c05c0a170a [3974] Updated DHCPv4 and DHCPv6 spec files with expiration specific params. 2015-10-02 15:36:05 +02:00
Marcin Siodelski
5e4ab4506a [3974] Implemented configuration parser for lease expiration config. 2015-10-02 14:51:15 +02:00
Marcin Siodelski
878bae1000 [3974] Added class holding configuration for lease expiation. 2015-10-02 11:15:15 +02:00
Shawn Routhier
33f0882b59 [trac3576] Updates per review comments
Typo level changes per review comments.
2015-10-01 19:33:54 -07:00
Francis Dupont
aedb56ca1e [4074] Made sockets close-on-exec 2015-10-01 22:51:20 +02:00
Tomek Mrugalski
39aff6266a [3985] Implemented IPv6 declined lease recovery. 2015-10-01 22:08:58 +02:00
Francis Dupont
a56e20e3ae [4074] Updated thread/process uint test 2015-10-01 21:45:06 +02:00
Thomas Markwalder
bcf547a6ca [3967] Added MySQL schema upgrade from 3.0 to 4.0 support
src/bin/admin/scripts/mysql/upgrade_3.0_to_4.0.sh.in
    New script file for upgrading from Schema 3.0 to 4.0

configure.ac
    Added an entry for new MySQL uppgrade script, upgrade_3.0_to_4.0.sh.in

src/bin/admin/scripts/mysql/Makefile.am
    Added entries for upgrade_3.0_to_4.0.sh.
    Reformatted list style to make adding entries a bit more convenient.

src/bin/admin/tests/mysql_tests.sh.in
    mysql_upgrade_test() - extended the test to verify the upgrade step
    from 3.0 to 4.0.
2015-10-01 15:38:09 -04:00
Francis Dupont
b8c4d54a9e [4074] Replaced exit() by _exit() in faulty children 2015-10-01 21:23:17 +02:00
Francis Dupont
be0ca958a0 [4074] Undid for_detector stuff 2015-10-01 21:21:15 +02:00
Thomas Markwalder
ad50f527f7 [master] Added ChangeLog entry 1017 for Trac #3916 trac4074_base 2015-10-01 14:30:07 -04:00
Shawn Routhier
4844e9252b [trac3576] Restore line accidently removed from DHCPv4 guide, fix typo in comment 2015-10-01 11:17:18 -07:00
Thomas Markwalder
09cdd86a5e [master] Replace lease-dump scripts with stored procedures for MySQL/Postgres
Merges in branch 'trac3916'
2015-10-01 14:14:34 -04:00
Francis Dupont
31099c626d [master] Updated git hash 2015-10-01 18:17:23 +02:00
Francis Dupont
760a343efb [master] Finished merge of trac4004 (enable-static and unit tests) 2015-10-01 18:16:35 +02:00
Francis Dupont
e4368d2920 [master] Merged trac4004 (enable-static and unit tests) 2015-10-01 18:10:15 +02:00
Francis Dupont
5e9aa3def6 [4062] Finished previous change 2015-10-01 17:59:55 +02:00
Francis Dupont
5bda4c48a4 [4062] Moved to Stephen's style for restore 2015-10-01 17:55:53 +02:00
Francis Dupont
52b74fefe0 [master] Merged trac4061 (use isc::asiolink::IOAddress predicates) 2015-10-01 17:48:30 +02:00
Francis Dupont
f74fcdeb9e [4061] Fixed typo 2015-10-01 17:47:03 +02:00
Thomas Markwalder
9ca02bd624 [3916] Use stored procedures for MySQL lease dumps
src/bin/admin/kea-admin.in
    src/bin/admin/kea-admin.in
        get_dump_query() - modified SQL text returned for MySQL backend
        which calls stored procedures to produce lease dumps  rather than
        SQL text from lease_dump_<version>.sh

src/bin/admin/scripts/mysql/Makefile.am
    removed entries for leave_dump_<version>.sh files

src/bin/admin/scripts/mysql/dhcpdb_create.mysql
    Added sql to create stored procedures for lease dumps:
        lease4DumpHeader
        lease4DumpData
        lease6DumpHeader
        lease6DumpData

src/bin/admin/scripts/pgsql/dhcpdb_create.pgsql
    Changes table references in lease6DumpData() to match
    convention used in MySQL lease6DumpData()

src/bin/admin/tests/mysql_tests.sh.in
    mysql_lease4_dump_test() - change lease4 test leases to have differing
    values for lease4.state

    mysql_lease6_dump_test() - change lease4 test leases to have differing
    values for lease6.state

mysql.lease4_dump_test.reference.csv
mysql.lease6_dump_test.reference.csv
    Changed reference files to use lease_state.name values rather than
    lease.state to match dump query output and  new test data

src/bin/admin/scripts/mysql
    deleted the following files as they are now obsolete
        leave_dump_1.0.sh
        leave_dump_2.0.sh
        leave_dump_3.0.sh
        leave_dump_4.0.sh
    Makefile.am - removed entries for deleted lease dump scripts
2015-10-01 08:46:18 -04:00
Tomek Mrugalski
a4bcb1b0e6 [master] ChangeLog updated after #3984 merge. 2015-10-01 14:24:51 +02:00
Tomek Mrugalski
32a8ec68e0 [master] Merge branch 'trac3984' (v4 declined lease recovery)
Conflicts:
	src/lib/dhcpsrv/alloc_engine.cc
	src/lib/dhcpsrv/tests/alloc_engine_expiration_unittest.cc
2015-10-01 14:23:35 +02:00
Tomek Mrugalski
d6d0a54375 [3984] Changes after review:
- Added comments in AllocEngine
 - decline message clarified
 - counters are now unsigned
 - several asserts added in unit-tests
 - missing doxygen entry added
2015-10-01 14:04:07 +02:00
Shawn Routhier
e36cf3994b [trac3576] Correct some strings, remvoe some extra whitespace 2015-09-30 18:44:18 -07:00
Shawn Routhier
d17f7e918d [trac3576] Clean up white space and add new files 2015-09-30 17:49:22 -07:00
Shawn Routhier
22baa11f69 [trac3576] Correct minimal length for v6 vendor class option 2015-09-30 17:15:00 -07:00
Thomas Markwalder
9fbe63fc67 [3916] Use stored functions for Postgres lease dumps
lease_dump_1.0.sh - deleted, now obsolete

src/bin/admin/scripts/pgsql/Makefile.am
    removed entries for lease_dump_1.0.sh

src/bin/admin/kea-admin.in
    get_dump_query() - modified SQL text returned for Postgres backend
    which calls stored functions to produce lease dumps  rather than
    SQL texti from lease_dump_<version>.sh

src/bin/admin/scripts/pgsql/dhcpdb_create.pgsql
    added statments to create lease dump functions:
        lease4DumpHeader
        lease4DumpData
        lease6DumpHeader
        lease6DumpData

src/bin/admin/tests/data/pgsql.lease6_dump_test.reference.csv
    Booleans were expected be 't' or 'f', changed to int 1 or 0
2015-09-30 15:10:13 -04:00
Marcin Siodelski
76f0f61072 [master] Added ChangeLog entry for #3972. 2015-09-30 15:37:14 +02:00
Marcin Siodelski
8a8547aec1 [master] Merge branch 'trac3972' 2015-09-30 14:50:04 +02:00
Marcin Siodelski
051f4fabff [3972] Renamed recycle-timer-wait-time to flush-reclaimed-timer-wait-time. 2015-09-30 14:48:23 +02:00
Marcin Siodelski
844b8434a9 [master] Added Changelog entry for #3971. 2015-09-30 14:43:32 +02:00
Marcin Siodelski
431d515fc3 [master] Merge branch 'trac3971' 2015-09-30 13:20:50 +02:00
Marcin Siodelski
92f52e2c03 [3972] Addressed review comments - minor nits. 2015-09-30 10:57:43 +02:00
Shawn Routhier
65097a0af7 [trac3576] Add PXE options
Add the options used by PXE
rfc4578 (dhcpv4)
93 Client_System (arch type)
94 Client NDI (network Interface id)
97 UUID/GUID client machine option def

rfc5970 (dhcpv6)
59 BOOTFILE_URL
60 BOOTFILE_PARAM
61 CLIENT_ARCH_TYPE
62 NII

Option 60 requires a special class in order to process the length & string tuples

As some unreleated tests used option 59 as an undefined option they needed to be
updated to use another option.
2015-09-29 23:23:12 -07:00
Marcin Siodelski
3a625111e0 [3971] Improved commentary in the Thread test. 2015-09-29 19:57:08 +02:00
Marcin Siodelski
fa0f966cf5 [3971] Addressed other review comments. 2015-09-29 19:55:27 +02:00
Marcin Siodelski
77836da98b [3971] Implemented test for graceful Thread destruction in child process. 2015-09-29 19:35:01 +02:00
Marcin Siodelski
e50fd18032 [3972] Lease reclamation routine executes the callouts. 2015-09-29 13:47:13 +02:00
Stephen Morris
12b5a638b5 [master] ChangeLog for #4046 2015-09-29 11:34:55 +01:00
Stephen Morris
9f1801b432 [master] Merge branch 'trac4046' 2015-09-29 11:02:41 +01:00
Marcin Siodelski
439e44ae0d [3971] Catch exceptions in the CtrlDhcp{4,6}Srv destructors. 2015-09-28 15:02:17 +02:00
Marcin Siodelski
747a83bf93 [3971] Remove products of the LFC run in the shell based tests. 2015-09-28 14:45:46 +02:00
Marcin Siodelski
7e7ea2756a [3971] DHCPv6 server uses TimerMgr to run LFC timers. 2015-09-28 13:21:09 +02:00
Marcin Siodelski
7f5f1a8acf [3971] Better handling errors when thread is stopped/started.
Also, improved some LFC unit tests.
2015-09-28 13:01:30 +02:00
Marcin Siodelski
7e0e428ccd [3971] TimerMgr returns the number of registered timers. 2015-09-28 11:24:25 +02:00