2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 20:47:48 +00:00

22978 Commits

Author SHA1 Message Date
Marcin Siodelski
1d77f223f5 [4320] ClientContext6 now holds information about multiple IAs. 2016-06-04 08:20:07 +02:00
Marcin Siodelski
522f98247b [master] Added ChangeLog entry for #4281. 2016-06-02 11:39:20 +02:00
Marcin Siodelski
b8a306a27d [master] Merge branch 'trac4281' 2016-06-02 10:08:58 +02:00
Shawn Routhier
21dd3fe2ef [master] Add commit number to change log for 4480 2016-06-01 22:45:13 -07:00
Shawn Routhier
cf14d0d21c [master] Merge branch 'trac4480'
Add debug statements to the classification code
2016-06-01 22:42:36 -07:00
Marcin Siodelski
be01b85b85 [4281] Removed unused variable. 2016-06-01 18:08:52 +02:00
Marcin Siodelski
e31b31bc71 [4281] Removed unnecessary header. 2016-06-01 17:37:15 +02:00
Marcin Siodelski
b76f35a9a2 [4281] Fixed trivial doxygen errors. 2016-06-01 17:35:44 +02:00
Thomas Markwalder
7df425da09 [master] Fixed Ubuntu build complaint
Added <stdint.h> to src/lib/dhcpsrv/pgsql_exchange.h
2016-06-01 09:31:31 -04:00
Thomas Markwalder
4014fb39a6 [4480] Fixed a few typos
Minor corrections to doc/guide/classify.xml
2016-06-01 09:08:44 -04:00
Thomas Markwalder
ff63173cf0 [master] Created common PgSqlConnection class from PgSqlLeaseMgr
Merged in trac 4276.
2016-06-01 07:49:37 -04:00
Marcin Siodelski
61ca023498 [4281] Addressed further review comments.
- Always invoke mysql_insert_id to retrieve host_id value
- exit if connection with  MySql database is lost
2016-05-30 11:30:26 +02:00
Shawn Routhier
cf62ec17c8 [trac4480] Update per review comments
Create a LogContentTest class and move the functions to manipulate
a test to check on the log output there.  This will make it available
for other tests in the future.  As part of this bundle a bit more
work into the class to minimze the calls in the test routines.

Where reasonable remove extra copys of the values being pushed
onto the stack - instead of generating a copy just for the logging
simply use the value from the top of the stack directly.

Swtich to using single quotes around text values.

Added some more description in the classify document
2016-05-26 21:36:36 -07:00
Marcin Siodelski
6efa4faf3a [4281] Added scope_id to the MySQL tables holding options. 2016-05-25 17:52:03 +02:00
Marcin Siodelski
abfb2c7c1f [4281] Moved MySQL host data source statements to impl class. 2016-05-25 16:48:31 +02:00
Thomas Markwalder
48a350e9ca [4276] Addressed review comments #2
Moved PgSqlExchange unit tests into their own file.
Improved time testing.
2016-05-25 09:32:13 -04:00
Marcin Siodelski
0e9d93b91f [4281] Addressed review comments. 2016-05-25 15:28:41 +02:00
Thomas Markwalder
ebfa39dc31 [4276] Addressed review comments
Minor cleanups, added some unit testing of PgSqlExchange functions.
2016-05-23 13:59:00 -04:00
Shawn Routhier
b8b931c501 [4480] Add debug logging for evaluation of classification expressions
This patch adds a set of log messages to indicate what values are
being popped from or pushed to the classification value stack.  This
is meant to be used by an administrator when debugging the expression
statements.
2016-05-19 21:56:18 -07:00
Stephen Morris
e7c3e4bb84 [master] ChangeLog for trac3164 2016-05-19 15:39:09 +01:00
Stephen Morris
3332ad1752 [master] Merge branch 'trac3164' 2016-05-19 14:56:01 +01:00
Stephen Morris
4b7e67a38f [3164] Add changes suggested by review
Change the connection timeout parameter from an "int" to an "unsigned
int". Update the checks to allow for lexical_cast not throwing an
exception when converting a string representing a negative number
to an unsigned int.
2016-05-19 14:38:19 +01:00
Marcin Siodelski
4dd36bf044 [master] Added ChangeLog entry for #4495. 2016-05-19 15:02:42 +02:00
Marcin Siodelski
41c43a2a9e [master] Merge branch 'trac4495' 2016-05-19 14:44:07 +02:00
Marcin Siodelski
714bc13463 [master] Added ChangeLog entry for #4499. 2016-05-19 14:35:33 +02:00
Marcin Siodelski
48c2079048 [master] Merge branch 'trac4499' 2016-05-19 14:17:25 +02:00
Thomas Markwalder
a7a134e786 [4276] Replace use of PGresult with PgSqlResult throughout 2016-05-18 09:32:30 -04:00
Thomas Markwalder
09e4931b63 [4276] Created new base class, PgSqlExchange
src/lib/dhcpsrv/Makefile.am
    Added pgsql_exchange.cc and pgsql_exchange.h

src/lib/dhcpsrv/pgsql_exchange.h
src/lib/dhcpsrv/pgsql_exchange.cc
    New files, containng new base class PgSqlExchange from
    which was distilled from PgSqlLeaseExchange

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    Refactored exchange classes to use new base class
    Moved PsqlBindArray into pgsql_exchange.*
2016-05-18 07:32:42 -04:00
Marcin Siodelski
4ea1ed0cab [4499] Removed inefficient conversion of the host identifier to text. 2016-05-17 18:17:55 +02:00
Thomas Markwalder
b1c67df1e8 [4276] Initial impl of PgSqlConnection class
Initial refactoring of Postgresql connection logic out of
    PgSqlLeaseMgr into new PgSqlConnection.
2016-05-17 11:49:07 -04:00
Marcin Siodelski
03be5afa9b [4495] Fixed inefficient creation of DHCP Message Type option. 2016-05-17 17:35:56 +02:00
Marcin Siodelski
960a636152 [4281] Renamed MySqlHostExchangeOpts to MySqlHostWithOptionsExchange. 2016-05-17 16:23:51 +02:00
Marcin Siodelski
9a2847d55e [4281] Updated recently modified files with proper commentary.
Also, fixed a couple of minor issues.
2016-05-17 15:23:27 +02:00
Marcin Siodelski
60192f6630 [4281] Creation of a new host in MySQL is wrapped in transaction. 2016-05-16 16:44:09 +02:00
Thomas Markwalder
8745f651e6 [master] Added ChangeLog entry 1115 for #4481 2016-05-13 10:02:11 -04:00
Thomas Markwalder
c0af94c47b [master] Added query<x> arugment to several callouts
Merge branch 'trac4481'
2016-05-13 09:22:40 -04:00
Thomas Markwalder
c79107c8e5 [4481] Changed lease6_select API doc to show query6 as "in" only 2016-05-13 09:20:25 -04:00
Thomas Markwalder
0808c821e1 [3164] Updated kea-admin copyright date 2016-05-13 08:06:00 -04:00
Marcin Siodelski
29bfd06c38 [4281] It is allowed to use formatted option values in the host database. 2016-05-13 10:43:43 +02:00
Stephen Morris
90a502bdbb [4481] Add missing description of query6 argument to lease6_select 2016-05-12 21:00:36 +01:00
Stephen Morris
1c8946db70 [3164] Correct a typo in the user guide 2016-05-12 19:30:51 +01:00
Marcin Siodelski
718643a83a [4281] Extended MySQL host data source with DHCPv4 and DHCPv6 options.
Missing things:
- proper commentary
- formatted values for options
- rollback host insertion when failing to add reservation or option
2016-05-12 18:31:07 +02:00
Stephen Morris
7258f494e7 [master] Added ChangeLog entry for #4485 2016-05-11 21:50:29 +01:00
Stephen Morris
4c6fb189b5 [master]Merge branch 'trac4485' 2016-05-11 21:10:55 +01:00
Stephen Morris
0b070124ab [3164] The database connection timeout is now a configurable parameter
In addition, the default has been changed to five seconds.
2016-05-11 20:40:25 +01:00
Thomas Markwalder
1d7afd1c02 [4481] Made query4 and query6 callout arguments uniformly available
The client packet is now uniformly available to all client packet driven
callouts for both v4 and v6:

Added "query4" to lease4_select and lease4_renew
    src/bin/dhcp4/dhcp4_hooks.dox
        Added query4 argument to lease4_select and lease4_renew documentation

    src/bin/dhcp4/tests/hooks_unittest.cc
        Revamped to track both query4 and response4 arguments
        TEST_F(HooksDhcpv4SrvTest, lease4RenewSimple) - modified to verify
        query4 set by lease4_renew callout

    src/lib/dhcpsrv/alloc_engine.cc
        - AllocEngine::createLease4()
        - AllocEngine::reuseExpiredLease4() - modified to add query4 to
        lease4_select callout arguments
        - AllocEngine::renewLease4() - modified to add query4 to lease4_renew
        callout arguments

    src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc
        HookAllocEngine4Test() - modified to track query4 argument
        TEST_F(HookAllocEngine4Test, lease4_select) - modified to verify query4
        callout argument

Added "query6" to pkt6_send and lease6_select
    src/bin/dhcp6/dhcp6_hooks.dox
        Added query6 argument to pkt6_send and lease6_select documentation

    src/bin/dhcp6/dhcp6_srv.cc
        Dhcpv6Srv::processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp) - modified to
        add query6 to the pkt_send callout arguments

    src/bin/dhcp6/tests/hooks_unittest.cc
        Revamped to track both query4 and response4 arguments
        TEST_F(HooksDhcpv6SrvTest, simplePkt6Send) - modified to
        verify query6 set by pkt6_send callout

    src/lib/dhcpsrv/alloc_engine.cc
        - AllocEngine::createLease4()
        - AllocEngine::reuseExpiredLease6() - modified to add query6 to
        lease6_select callout arguments
        callout arguments

    src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc
        HookAllocEngine6Test() - modified to track query6 argument
        TEST_F(HookAllocEngine6Test, lease4_select) - modified to verify
        query6 argument
2016-05-11 13:12:19 -04:00
Tomek Mrugalski
d67528d056 [master] Corrections in the config examples. 2016-05-11 14:19:04 +02:00
Tomek Mrugalski
b20d5e68d8 [master] ChangeLog updated after 4112 merge. 2016-05-10 16:48:01 +02:00
Tomek Mrugalski
3352685981 [master] Merge branch 'trac4112' (subnet4o6 selection based on v6 info) 2016-05-10 16:37:44 +02:00
Tomek Mrugalski
df2b27cd52 [4112_rebase] Compilation fix. 2016-05-10 16:04:17 +02:00