2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

23242 Commits

Author SHA1 Message Date
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
97113367f5 [3572] Discard DHCPv4 host options container if it is empty.
This is a small performance improvement.
2016-05-31 11:37:28 +02:00
Marcin Siodelski
e720266dcd [3573] Assign host specific options by the DHCPv6 server.
Also, fixes in the host unit tests.
2016-05-31 11:09:29 +02:00
Marcin Siodelski
2ebc4da9d7 [3573] Further extended tests for DHCPv6 options reservations.
Added tests for Renew and Rebind and did some minor cleanups.
2016-05-31 10:33:11 +02:00
Marcin Siodelski
5e3ac125a8 [3573] Added basic test verifying assignment of host specific options. 2016-05-30 17:02:47 +02: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
Marcin Siodelski
68202299ff [3572] Test assignment of host specific options with DHCPINFORM. 2016-05-23 16:54:37 +02:00
Marcin Siodelski
8f75806506 [3572] Test that vendor specific options are overriden.
In the new test the vendor specific options are defined on the
host and global levels. Host specific options should override
globally defined options.
2016-05-23 14:52:14 +02:00
Marcin Siodelski
b1899f97cd [3572] DHCPv4 server sends host specific options. 2016-05-20 19:00:00 +02: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
Tomek Mrugalski
22f72b302e [4510] Fix for escaped characters (e.g. backslashes) in option contents. 2016-05-19 15:54:23 +02: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
32227e0933 [4318] Added unit tests for reservations by DUID in DHCPv4. 2016-05-19 15:20:09 +02: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
Tomek Mrugalski
c33b682e3d [4308] Subnet selection in v4 tweaked, added two debug messages. 2016-05-19 14:11:09 +02:00
Tomek Mrugalski
7a4c274d2e [4308] Implemented subnet selection based on interface name. 2016-05-19 14:10:57 +02:00
Marcin Siodelski
24a243501d [4498] Removed support for callback functions unpacking options.
Previously we used callback functions to pass a pointer to the
server-side function unpacking options. Currently we register
runtime option definitions in libdhcp++, so the callback
functions are not necessary anymore.
2016-05-19 13:48:56 +02:00
Marcin Siodelski
379fac4ae2 [4498] Unified container types holding option definitions in LibDHCP. 2016-05-19 10:32:33 +02:00
Marcin Siodelski
c3eeb3cc60 [4498] Avoid copying container with option definitions during parsing. 2016-05-18 17:06:54 +02:00
Thomas Markwalder
a7a134e786 [4276] Replace use of PGresult with PgSqlResult throughout 2016-05-18 09:32:30 -04:00
Marcin Siodelski
af230eae30 [4498] Extended test for parsing vendor options.
This test checks that the vendor specific option definitions are
used when parsing vendor option.
2016-05-18 14:54:17 +02:00
Marcin Siodelski
be3e5317ec [4498] Removed server specific function for parsing DHCPv6 options. 2016-05-18 13:48:21 +02: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
baa4290727 [4498] Removed server specific method for unpacking DHCPv4 options. 2016-05-18 13:25:35 +02:00
Tomek Mrugalski
5a188f631d [4510] Added unit-test that replicates the issue of mishandling backslashes. 2016-05-17 19:28:48 +02: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