2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-28 12:37:55 +00:00

67 Commits

Author SHA1 Message Date
Tomek Mrugalski
3cd100455b [master] Merge branch 'trac5039' (SimpleParser)
# Conflicts:
#	src/bin/dhcp4/Makefile.am
#	src/bin/dhcp4/json_config_parser.cc
#	src/bin/dhcp6/Makefile.am
#	src/bin/dhcp6/dhcp6.dox
#	src/bin/dhcp6/json_config_parser.cc
#	src/bin/dhcp6/tests/Makefile.am
2016-12-27 19:25:31 +01:00
Tomek Mrugalski
65d187c0e6 [5039] Changes after review:
- address_family_, default ctor removed from two parsers
 - copyright year updated
 - Element::getNonConst is now documented
 - user's guide is now clear about csv-format default value is now true
2016-12-22 18:43:21 +01:00
Tomek Mrugalski
0d579d2a20 [5039] Element::getMutableMap implemented 2016-12-22 16:36:28 +01:00
Tomek Mrugalski
475b253194 [5039] SimpleParser is now split into cc/SimpleParser and SimpleParser{4,6} 2016-12-22 16:20:34 +01:00
Tomek Mrugalski
313cdfdd54 [5017] version parameter removed from both Dhcp4 and Dhcp6 parsers 2016-12-20 16:25:01 +01:00
Tomek Mrugalski
f9abab4bd0 [5014_phase2] SimpleParser implemented, 4 parsers converted
- SimpleParser concept implemented
 - Converted 4 parsers (option data, option data list, option defintion,
   option definition list)
 - updated unit-tests
 - converted other parsers (HostReservationParser{4,6}, ClientClassDefParser)
   to use those new parsers
 - converted kea-dhcp{4,6} to use those new parsers

Conflicts:
	src/bin/dhcp6/json_config_parser.cc
	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
2016-11-29 20:09:14 +01:00
Marcin Siodelski
b10ec64987 [5022] Options can only be specified for DHCPv6 pools. 2016-10-05 20:56:42 +02:00
Francis Dupont
2192caa2c2 [4106] Ported DHCPv4-over-DHCPv6 IPC code from fd4o6 private branch 2016-05-11 15:22:16 +02: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
537f48410d [3696] Addressed review comments.
Addressed a couple of minor issues and added unit tests for
switching between various lease database backends.
2016-03-01 09:33:06 +01:00
Marcin Siodelski
05c79aa706 [3696] It is allowed to not specify lease database configuration.
In such case, the server will use a default configuration - memfile
lease database backend.
2016-01-12 14:26:07 +01:00
Francis Dupont
b67910a389 [master] Finised merge of trac4234 (doxygen warnings) 2015-12-22 18:05:59 +01:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00
Francis Dupont
c79b3f4362 [4234] doxygen fixes last pass 2015-12-11 20:21:06 +01:00
Marcin Siodelski
6bc8c1cb7d Revert "[master] Merge branch 'trac4106'"
This reverts commit 8f2a1f8a7a0e27a8c584186cfda089cd88ec6153, reversing
changes made to ed7edadcbd2bde368fdde86e1c997ea225b456f5.

This  merge introduced regressions in our build farm and revealed
issues in the DHCP4o6 IPC code. It also revealed some differences
in sockets handling under Linux and BSD. Rather than continue
patching this here, we should work on the branch to resolve all
issues and then merge 1.1.
2015-12-10 23:08:59 +01:00
Marcin Siodelski
8f2a1f8a7a [master] Merge branch 'trac4106' 2015-12-10 12:24:15 +01:00
Tomek Mrugalski
a3a40b9c2b [3569] Implemented configuration for host data source. 2015-12-01 11:34:13 +01:00
Marcin Siodelski
3f53001245 [4204] Remove runtime option defs if "option-def" is not in config. 2015-11-25 16:44:46 +01:00
Marcin Siodelski
97003370e9 [4204] Runtime option definitions created using set/commit process. 2015-11-24 20:26:08 +01:00
Marcin Siodelski
b6beda2888 [4204] Runtime option definitions held in the libdhcp++ library. 2015-11-23 13:33:04 +01:00
Thomas Markwalder
a419556f01 [4096] kea-dhcp4 now parses client class definitions list
src/bin/dhcp4/json_config_parser.cc
    - createGlobalDhcp4ConfigParser() - creates ClientClassDefListParser
    for "client-classes" element
    - configureDhcp4Server() - runs the ClientClassDefListParser against
    the "client-classes" element

src/bin/dhcp4/tests/config_parser_unittest.cc
    Added new tests for parsing client class definitions:
    TEST_F(Dhcp4ParserTest, clientClassDictionary)
    TEST_F(Dhcp4ParserTest, invalidClientClassDictionary)

src/bin/dhcp4/dhcp4.spec
    Added global "client-classes" element
2015-11-17 13:28:40 -05:00
Francis Dupont
f24c97d08a [master] Merged trac3927 (default in option-def) 2015-11-04 05:55:49 +01:00
Tomek Mrugalski
115a407148 [4105] config parser now uses getOptionalParam() methods. 2015-10-31 20:33:29 +09:00
Tomek Mrugalski
51d5c00f67 [4105] Changes after review:
- getters/setters implemented in Cfg4o6.
 - extra space removed.
2015-10-31 20:24:04 +09:00
Francis Dupont
89c8c17a16 [4106] Ported DHCPv4-over-DHCPv6 IPC code from fd4o6 private branch 2015-10-31 19:43:38 +09:00
Tomek Mrugalski
e648d36192 [4105] Implement 4o6-interface-id parameter. 2015-10-31 16:47:51 +09:00
Tomek Mrugalski
75f18d0a63 [4105] Subnet4 parser updated to accept 4o6-interface, 4o6-subnet parameters 2015-10-31 14:08:01 +09:00
Francis Dupont
3029c65e56 [3927] spurious indents 2015-10-17 21:05:18 +02:00
Marcin Siodelski
cfbd62e006 [3974] Attached parser for expired leases processing to global parser. 2015-10-02 15:36:40 +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
Tomek Mrugalski
cca862a017 [3983] defaults.h moved to src (after Marcin's review) 2015-09-08 14:56:20 +02:00
Tomek Mrugalski
4b379092a7 [3983] Changes after review:
- commitGlobalParameters renamed to setGlobalParameters
 - const added
 - Comments updated
2015-09-02 13:29:56 +02:00
Tomek Mrugalski
91bfb283b0 [3983] Support for 'decline-probation-period' implemented. 2015-08-20 20:51:28 +02:00
Tomek Mrugalski
7ebca7c03c [3880] Support for control-socket implemented in DHCPv4. 2015-06-10 13:43:12 +02:00
Tomek Mrugalski
d3da062d51 [master] Merge branch 'trac3796' (statistics interface, part 1)
Conflicts:
	src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
	src/bin/dhcp6/tests/dhcp6_test_utils.cc
2015-06-10 13:36:06 +02:00
Tomek Mrugalski
89c0130ed4 [3796] command_interpreter.cc|h|tests moved: src/lib/config => src/lib/cc 2015-06-10 10:48:24 +02:00
Tomek Mrugalski
aa10ecc86f [3796] ccsession.cc|h renamed to command_interpreter.cc|h 2015-05-20 16:14:41 +02:00
Marcin Siodelski
d21a9b2bd6 [3747] Renamed parameter record-client-id to match-client-id.
Also fixed a couple of failing unit tests.
2015-05-13 19:41:48 +02:00
Marcin Siodelski
dca41228db [3747] Renamed ignore-client-id to record-client-id and reversed values. 2015-05-12 15:13:46 +02:00
Marcin Siodelski
1e2bfcdc46 [3747] Update configuration parsers to support ignore-client-id. 2015-05-12 12:34:57 +02:00
Francis Dupont
ea6e9d166f [master] remove '#include <config.h' from include files (#3782) 2015-04-18 01:39:43 +02:00
Shawn Routhier
480971bab6 [3735] Fix up a number of warnigns in the Doxygen comments. 2015-03-20 12:10:37 -07:00
Marcin Siodelski
81b5979918 [3744] Minor comments update in the JSON parsers. 2015-03-17 12:34:28 +01:00
Marcin Siodelski
68bfa90266 [3744] Parse lease db after subnets configuration
This patch runs the database parser last (after subnets have been parsed).
This allows, for example, to access the subnets staging configuration
when leases are being loaded from disk.
2015-03-17 12:22:14 +01:00
Marcin Siodelski
6ed885b735 [3736] Removed a bunch of unused functions. 2015-03-12 12:01:16 +01:00
Tomek Mrugalski
cfbe13ad05 [master] Merge branch 'trac3565' (host reservations mac+dhcpv6)
Conflicts:
	src/bin/dhcp6/dhcp6_srv.cc
2015-02-16 20:26:38 +01:00
Tomek Mrugalski
b505c120fb [3565] Changes after review:
- Documentation for reservation-mode added
- spec files updated
- unit-tests for HR no longer use eth0 or eth1
- @todos added when allow_new_leases_in_renewals_ is expected to be used
- HR unit-test no longer uses at()
- Copyright years updated
- getOptionalParam() used when handling reservation-mode
- hrModeFromText() moved to SubnetConfigParser
- hrModeFromText() starts with lowercase and has its documentation expanded
2015-02-16 17:30:15 +01:00
Tomek Mrugalski
34e62083eb [3565] reservation-mode is now configurable 2015-02-12 19:33:06 +01:00
Marcin Siodelski
e994b57ca4 [3604] Use new interface configuration format where applicable.
Also, renamed interface-config to interfaces-config (plural form).
2015-02-09 13:50:17 +01:00
Marcin Siodelski
f783c80336 [3604] Going over the unit test to use the new iface config structure. 2015-02-06 20:36:14 +01:00