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

22505 Commits

Author SHA1 Message Date
Marcin Siodelski
f75ba49ed4 [3979] Added examples demonstrating processing expired leases. 2015-10-26 14:00:01 +01:00
Francis Dupont
079b324945 [master] Updated git hash 2015-10-26 13:56:51 +01:00
Francis Dupont
9d5716e5bd [master] Finished merge of trac3978 (new leases-reclaim command) 2015-10-26 13:55:36 +01:00
Francis Dupont
8a7dae1e17 [master] Finished merge of trac3978 (new leases-reclaim command) 2015-10-26 13:52:43 +01:00
Francis Dupont
53dd16c29d [master] Merged trac3978 (new leases-reclaim command) 2015-10-26 13:33:56 +01:00
Marcin Siodelski
702b77ce47 [3979] Added description of leases-reclaim command to User Guide. 2015-10-26 12:59:35 +01:00
Shawn Routhier
292c9a036c [trac3977] Tidy up some typos 2015-10-25 22:25:45 -07:00
Thomas Markwalder
be964a2b42 [3780] MySQL and Postgres lease managers now exit on fatal error detection
src/lib/dhcpsrv/dhcpsrv_messages.mes
    added messages DHCPSRV_MYSQL_FATAL_ERROR, DHCPSRV_PGSQL_FATAL_ERROR

src/lib/dhcpsrv/mysql_lease_mgr.cc
    added MySQL client error code include

    MySqlLeaseMgr::checkError() - method is no longer inlined in
    the header.  Expanded to detect unrecoverable errors, log
    them and call exit().

src/lib/dhcpsrv/mysql_lease_mgr.h
    Removed inline implemenation of MySqlLeaseMgr::checkError(),
    and expanded commentary

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    PgSqlLeaseMgr::addLeaseCommon() - now uses checkStatementError()

    PgSqlLeaseMgr::checkStatementError() - Expanded to detect
    unrecoverable errors, log them and call exit().

src/lib/dhcpsrv/pgsql_lease_mgr.h
    Expanded commentary for PgSqlLeaseMgr::checkStatementError()
2015-10-23 16:41:27 -04:00
Marcin Siodelski
74e140a3a8 [3979] Added new chapter about lease reclamation to the User Guide. 2015-10-23 17:06:23 +02:00
Francis Dupont
e03cf770b3 [3978] Addressed comments 2015-10-23 04:23:45 +02:00
Francis Dupont
360b740097 [master] Merge branch 'master' of ssh://git.kea.isc.org/git/kea 2015-10-21 21:22:25 +02:00
Francis Dupont
c7b26c2e62 [master] spelling 2015-10-21 21:21:55 +02:00
Thomas Markwalder
b9124baac0 [master] Added ChangeLog entry 1036 for trac #3969. 2015-10-21 14:58:02 -04:00
Thomas Markwalder
8fde70c1b6 [master] Implemented schema upgrade for Postgres schema 2.0
Merged in branch 'trac3969'
2015-10-21 14:24:19 -04:00
Thomas Markwalder
b6fb92457f [3969] Addressed review comments 2015-10-21 11:57:47 -04:00
Francis Dupont
c8a30ae1a1 [master] Replaced EXPECT_EQ by EXPECT_TRUE == on HWAddr 2015-10-21 17:06:19 +02:00
Tomek Mrugalski
125f433f90 [3988] Documentation updated. 2015-10-21 16:05:59 +02:00
Tomek Mrugalski
8d52e11cbb [3988] lease{4,6}_recover hook implemented (with unit-tests) 2015-10-21 15:51:40 +02:00
Francis Dupont
1ca289721d [master] Updated git hash 2015-10-21 15:17:21 +02:00
Francis Dupont
c5cffe74ac [master] Finished merge of trac4071 (internal record format in option doc) 2015-10-21 15:15:17 +02:00
Francis Dupont
9628fbe13a [master] Merged trac4071 (internal record format in option doc) 2015-10-21 15:13:11 +02:00
Francis Dupont
2d6ac9fd88 [master] Merged trac4059 (layer 2 DHCPv6 relays) 2015-10-21 15:07:03 +02:00
Francis Dupont
fea70970cc [master] Updated git hash 2015-10-21 15:05:11 +02:00
Francis Dupont
b7072884e8 [master] Finished merge of trac4058 (DHCPv4 Subnet Selection option) 2015-10-21 14:55:17 +02:00
Marcin Siodelski
71e4bb1dce [3977] Added system_messages program to .gitignore. 2015-10-21 14:15:24 +02:00
Marcin Siodelski
d580c4225c [3977] Removed unused code generating NCRs. 2015-10-21 14:11:31 +02:00
Marcin Siodelski
52f812a86d [3977] Do not generate NCRs for prefix delegation. 2015-10-21 12:47:04 +02:00
Marcin Siodelski
fd3e11d169 [3977] Improved logging in methods queueing NCRs and reclaiming leases. 2015-10-21 12:25:04 +02:00
Marcin Siodelski
472f388709 [3977] Added variants of PktX::makeLabel excluding transaction id. 2015-10-21 11:20:15 +02:00
Thomas Markwalder
49b0bac276 [3969] Added upgrade support from Postgres schema 1.0 to 2.0
Upgrade adds state column to both lease tables, the state table,
and the lease dump functions.

src/bin/admin/scripts/pgsql/upgrade_1.0_to_2.0.sh -
    new script for upgrading postgres schema

src/bin/admin/tests/dhcpdb_create_1.0.pgsql
    new sql script for creating 1.0 schema db

configure.ac
    added entry for new upgrade script

src/bin/admin/kea-admin.in
    pgsql_upgrade() - modified to set Postgres password env variable
    and pass in remaining args as psql expects them

src/bin/admin/scripts/pgsql/Makefile.am
    added entry for new upgrade script

src/bin/admin/tests/Makefile.am
    added entry for 1.0 schema script

src/bin/admin/tests/pgsql_tests.sh.in
    pgsql_upgrade_test()  - revamped now that Postgres actually
    has its first upgrade script.
2015-10-20 08:36:14 -04:00
Marcin Siodelski
5de74693c4 [3977] Name change requests are now generated when lease is reused.
This change triggered a lot of code refactoring for generating the
NameChangeRequests. Long story short is that the functions responsible
for generating NCRs from the lease information have been moved to
the libdhcpsrv where they better fit and where they may be used
by both allocation engine and the servers.
2015-10-20 14:27:22 +02:00
Stephen Morris
814fabe921 [master] ChangeLog for trac3443 2015-10-20 11:12:43 +01:00
Stephen Morris
4bf0a14aa7 [master] Merge branch 'trac3443' 2015-10-20 10:54:43 +01:00
Francis Dupont
882cfa6cad [4071] Tried inline description of standard option records 2015-10-19 19:14:33 +02:00
Stephen Morris
24b35b847c [3443] Minor changes after review. 2015-10-19 18:05:01 +01:00
Marcin Siodelski
19dc7c8ffc [master] Fixing one more params binding issue in PostgreSQL.
This change was omitted during the previous commit.
trac4071_base
2015-10-19 07:32:07 -07:00
Marcin Siodelski
6a7186233e [master] Do not use temporary variables to bind to PostgreSQL queries.
This change has been reviewed and approved on jabber.
2015-10-19 07:17:10 -07:00
Francis Dupont
f5c8bd14f4 [3927] Tentative to fix option-def descriptions 2015-10-18 22:10:47 +02:00
Francis Dupont
8e360e6613 [3927] Simplified option-data tests 2015-10-18 21:39:57 +02:00
Francis Dupont
df49e49ac2 [3927] Simplified option-def tests 2015-10-18 19:57:20 +02:00
Francis Dupont
75552a69de [3927] blank line 2015-10-17 21:47:15 +02:00
Francis Dupont
3029c65e56 [3927] spurious indents 2015-10-17 21:05:18 +02:00
Francis Dupont
2eb98727c7 [3978] Rearranged DHCPv4 unit tests 2015-10-17 11:22:24 +02:00
Francis Dupont
448015b06a [3978] Cleaned up code 2015-10-17 11:19:55 +02:00
Francis Dupont
c5ac045740 [3978] new command handler takes no argument 2015-10-17 01:10:25 +02:00
Francis Dupont
66e996f842 [3978] Added unit tests 2015-10-16 23:50:39 +02:00
Francis Dupont
008b74a6ff [3978] Tentative leases-reclaim command 2015-10-16 23:01:33 +02:00
Francis Dupont
8f5ca179e1 [3978] spelling 2015-10-16 23:01:02 +02:00
Francis Dupont
27d083a0bb [3978] spelling 2015-10-16 23:00:35 +02:00
Francis Dupont
f082208431 [3978] commands-list -> list-commands 2015-10-16 22:31:51 +02:00