]>
git.ipfire.org Git - thirdparty/kea.git/log
Thomas Markwalder [Fri, 20 Jan 2017 13:57:41 +0000 (08:57 -0500)]
[5110] Added support for setting configuration defaults to DCfgMgrBase
src/lib/process/d_cfg_mgr.h
src/lib/process/d_cfg_mgr.cc
DCfgMgrBase::setCfgDefaults() - new virtual method so derivations can
insert default values prior into a configuration
DCfgMgrBase::parseConfig() - added call to setCfgDefaults() prior to
calling parseConfig().
Thomas Markwalder [Thu, 19 Jan 2017 19:23:37 +0000 (14:23 -0500)]
[5110] Added basic bison parser and SimpleParser to D2
D2 now uses bison parsing to parse its config file and has starter
files for SimpleParser. This check-in uses only generic JSON context
parsing (i.e. no D2 specific grammar).
Added new bison/flex parsing files:
d2_lexer.ll
d2_parser.yy
parser_context.cc
parser_context.h
parser_context_decl.h
Added new generated files:
d2_parser.cc
d2_parser.h
location.hh
position.hh
stack.hh
Added new SimpleParser related files:
d2_simple_parser.cc
d2_simple_parser.h
src/bin/d2/Makefile.am
Added bison/flex related entries and rules
src/bin/d2/d2_controller.h
src/bin/d2/d2_controller.cc
D2Controller::parseFile() - new method which overrides base class
version and calls new bison parsing to parse JSON config file.
Thomas Markwalder [Thu, 19 Jan 2017 18:57:49 +0000 (13:57 -0500)]
[5110] Added alternate parsing hooks into DController and DCfgMgrBase
In order to accomodate bison parsing for JSON text and SimpleParser
based element parsing, virtual methods were added to allow derivations
to migrate.
src/lib/process/d_cfg_mgr.h
src/lib/process/d_cfg_mgr.cc
DCfgMgrBase::parseElement() - new method to allow derivaitons
to support alternate Element parsers on a element by element basis
DCfgMgrBase::buildParams()
DCfgMgrBase::buildAndCommit() - added call to parseElement()
src/lib/process/d_controller.h
src/lib/process/d_controller.cc
DControllerBase::parseFile() - new method to allow derivations
to use alternate JSON parsers
DControllerBase::configFromFile() - added call to parseFile()
Tomek Mrugalski [Thu, 26 Jan 2017 15:36:38 +0000 (16:36 +0100)]
[master] ChangeLog update after 5019 merge.
Tomek Mrugalski [Thu, 26 Jan 2017 14:27:05 +0000 (15:27 +0100)]
[5019_rebase] Position printed in the first createSubnet exception
Tomek Mrugalski [Thu, 26 Jan 2017 14:20:08 +0000 (15:20 +0100)]
[5019_rebase] New global parser classes documented.
Tomek Mrugalski [Thu, 26 Jan 2017 14:19:47 +0000 (15:19 +0100)]
[5019_rebase] Removed obsolete duplicate_option_warning
Tomek Mrugalski [Thu, 26 Jan 2017 14:03:47 +0000 (15:03 +0100)]
[5019_rebase] createGlobalDhcpXConfigParser removed
Tomek Mrugalski [Thu, 26 Jan 2017 14:00:35 +0000 (15:00 +0100)]
[5019_rebase] Review changes:
- RSOOListConfigParser migrated
- Global parser tweaked (SrvConfig passed as parameter)
- duplicate_option_warning removed
Tomek Mrugalski [Thu, 26 Jan 2017 13:26:16 +0000 (14:26 +0100)]
[5019_rebase] Fix after rebase.
Francis Dupont [Thu, 26 Jan 2017 00:26:10 +0000 (01:26 +0100)]
[5019] Addressed some (but not all) comments/concerns
Francis Dupont [Wed, 25 Jan 2017 15:18:16 +0000 (16:18 +0100)]
[5019] spelling
Tomek Mrugalski [Wed, 25 Jan 2017 13:57:34 +0000 (14:57 +0100)]
[5019] .gitignore tweaked (*~ added)
Tomek Mrugalski [Wed, 25 Jan 2017 13:51:11 +0000 (14:51 +0100)]
[5019] subnet defaults implemented, id, rapid-commit params migrated
Tomek Mrugalski [Wed, 25 Jan 2017 13:45:12 +0000 (14:45 +0100)]
[5019] setListDefaults argument constified
Tomek Mrugalski [Tue, 24 Jan 2017 22:53:07 +0000 (23:53 +0100)]
[5019] Global v4/v6 parsers migrated to SimpleParser.
Tomek Mrugalski [Tue, 24 Jan 2017 15:30:47 +0000 (16:30 +0100)]
[5019] @todo added in srv_config.h
Tomek Mrugalski [Tue, 24 Jan 2017 15:30:25 +0000 (16:30 +0100)]
[5019] SimpleParser methods are now public (used in global parsers)
Tomek Mrugalski [Mon, 23 Jan 2017 15:52:57 +0000 (16:52 +0100)]
[5019] Unit-test fixed.
Tomek Mrugalski [Mon, 23 Jan 2017 14:39:49 +0000 (15:39 +0100)]
[5019] Subnet4, Subne6 parsers migrated to SimpleParser
Francis Dupont [Wed, 25 Jan 2017 17:24:14 +0000 (18:24 +0100)]
[master] host-database -> hosts-database
Francis Dupont [Wed, 25 Jan 2017 15:06:26 +0000 (16:06 +0100)]
[master] Finished merge of trac5097 (migrate pool config) use SimpleParser templates
Francis Dupont [Wed, 25 Jan 2017 14:15:40 +0000 (14:15 +0000)]
[master] regen flex/bison files
Francis Dupont [Wed, 25 Jan 2017 14:14:01 +0000 (15:14 +0100)]
[master] Finishing merge of trac5097 (migrate pool config)
Francis Dupont [Wed, 25 Jan 2017 14:01:27 +0000 (14:01 +0000)]
[master] regen flex/bison files
Francis Dupont [Wed, 25 Jan 2017 14:00:15 +0000 (15:00 +0100)]
[master] Finishing merge of trac5096 (migrate database config)
Tomek Mrugalski [Wed, 25 Jan 2017 11:55:44 +0000 (12:55 +0100)]
[5096] @todo added about migrating default values to simple parser
Francis Dupont [Tue, 24 Jan 2017 22:18:58 +0000 (23:18 +0100)]
[master] spelling
Francis Dupont [Tue, 24 Jan 2017 19:32:40 +0000 (20:32 +0100)]
[master] spelling
Francis Dupont [Tue, 24 Jan 2017 19:18:41 +0000 (20:18 +0100)]
[master] regen
Francis Dupont [Tue, 24 Jan 2017 19:07:17 +0000 (20:07 +0100)]
[master] spelling (including in some messages)
Francis Dupont [Tue, 24 Jan 2017 12:09:40 +0000 (13:09 +0100)]
[master] spelling (including in a message)
Francis Dupont [Tue, 24 Jan 2017 10:29:22 +0000 (11:29 +0100)]
[master] spelling
Francis Dupont [Tue, 24 Jan 2017 10:19:53 +0000 (11:19 +0100)]
[master] spelling
Francis Dupont [Mon, 23 Jan 2017 22:56:37 +0000 (23:56 +0100)]
[master] Fixed system_messages path (cf github PR#33)
Francis Dupont [Mon, 23 Jan 2017 22:49:57 +0000 (23:49 +0100)]
[master] spelling
Francis Dupont [Mon, 23 Jan 2017 17:14:31 +0000 (18:14 +0100)]
[master] Updated COPYING years
Francis Dupont [Mon, 23 Jan 2017 17:06:14 +0000 (18:06 +0100)]
[master] Initialized another variable in D2ClientConfigParser::parse
Francis Dupont [Mon, 23 Jan 2017 13:49:01 +0000 (14:49 +0100)]
[master] Initialized more variables in D2ClientConfigParser::parse
Francis Dupont [Fri, 20 Jan 2017 13:52:54 +0000 (14:52 +0100)]
[5096] Use DhcpConfigError only, add locations and a DB backend comment
Francis Dupont [Thu, 19 Jan 2017 14:35:09 +0000 (15:35 +0100)]
[master] Updated git hash
Francis Dupont [Thu, 19 Jan 2017 13:40:05 +0000 (13:40 +0000)]
[master] regen flex/bison files
Francis Dupont [Thu, 19 Jan 2017 13:38:51 +0000 (14:38 +0100)]
[master] Finishing merge of trac5098 (migrate client class def)
Francis Dupont [Thu, 19 Jan 2017 13:08:08 +0000 (14:08 +0100)]
[5098] Reserved last change (position added by the englobing try/catch)
Tomek Mrugalski [Thu, 19 Jan 2017 12:07:53 +0000 (13:07 +0100)]
[5098] Exception now logs location.
Francis Dupont [Wed, 18 Jan 2017 11:01:15 +0000 (12:01 +0100)]
[5097] Added a new template for D2ClientConfigParser tools
Francis Dupont [Wed, 18 Jan 2017 01:27:14 +0000 (02:27 +0100)]
[5098] Improved checks and unit tests
Francis Dupont [Wed, 18 Jan 2017 00:08:28 +0000 (01:08 +0100)]
[5097] Added an unit test and 2 examples
Francis Dupont [Tue, 17 Jan 2017 23:19:44 +0000 (00:19 +0100)]
[5097] Addressed not unit test comments
Francis Dupont [Mon, 16 Jan 2017 16:01:12 +0000 (17:01 +0100)]
[master] Addressed doxygen warnings from #5033 merge
Francis Dupont [Mon, 16 Jan 2017 13:19:54 +0000 (13:19 +0000)]
[master] regen flex
Francis Dupont [Mon, 16 Jan 2017 13:19:20 +0000 (14:19 +0100)]
[master] Tried another way to fix UDP flex overload
Francis Dupont [Mon, 16 Jan 2017 13:06:21 +0000 (13:06 +0000)]
[master] regen flex
Francis Dupont [Mon, 16 Jan 2017 13:05:41 +0000 (14:05 +0100)]
[master] typo (required regen)
Francis Dupont [Mon, 16 Jan 2017 13:02:52 +0000 (13:02 +0000)]
[master] regen flex/bison files
Francis Dupont [Mon, 16 Jan 2017 13:01:28 +0000 (14:01 +0100)]
[master] Finished merge of trac5033 (migrate D2client) (tentative fixes)
Francis Dupont [Mon, 16 Jan 2017 12:49:43 +0000 (13:49 +0100)]
[master] Finished merge of trac5033 (migrate D2client)
Francis Dupont [Fri, 13 Jan 2017 22:10:40 +0000 (23:10 +0100)]
[5033] Refactored D2ClientConfigParser
Francis Dupont [Fri, 13 Jan 2017 19:11:59 +0000 (19:11 +0000)]
[trac5033] regen flex/bison files
Francis Dupont [Fri, 13 Jan 2017 19:10:44 +0000 (20:10 +0100)]
[5033] Ported flex/bison stuff to DHCPv6
Francis Dupont [Fri, 13 Jan 2017 17:08:14 +0000 (18:08 +0100)]
[5033] Setup flex/bison (checkpoint - only DHCPv4 done)
Francis Dupont [Fri, 13 Jan 2017 14:28:52 +0000 (15:28 +0100)]
[5033] Fixed defaults and enable-updates=false shortcut problems
Thomas Markwalder [Fri, 13 Jan 2017 12:05:23 +0000 (07:05 -0500)]
[5033] Removed no longer relevant enable-udpates false test
D2ClientConfigParser:parse() - removed the enable-updates false
test as it is both irrelevant and broken (map size will never be 1)
Francis Dupont [Thu, 12 Jan 2017 22:09:16 +0000 (23:09 +0100)]
[5033] Various fixes mostly cosmetic
Francis Dupont [Thu, 12 Jan 2017 20:16:43 +0000 (21:16 +0100)]
[5033] Some fixes (1,2,4 of review)
Tomek Mrugalski [Thu, 12 Jan 2017 18:56:56 +0000 (19:56 +0100)]
[master] ChangeLog updated.
Tomek Mrugalski [Thu, 12 Jan 2017 14:38:43 +0000 (15:38 +0100)]
[master] Doxygen warnings fixed.
Thomas Markwalder [Thu, 12 Jan 2017 13:23:21 +0000 (08:23 -0500)]
[5033] Added exmaple json files with dhcp-ddns, fixed copyrights
Tomek Mrugalski [Thu, 12 Jan 2017 12:49:58 +0000 (13:49 +0100)]
[master] Merge branch 'trac5031' (hooks-libraries parser migrated)
# Conflicts:
# src/bin/dhcp4/json_config_parser.cc
# src/bin/dhcp6/json_config_parser.cc
Francis Dupont [Thu, 12 Jan 2017 12:12:51 +0000 (13:12 +0100)]
[5097] Added a check and unit tests against prefix length truncation
Tomek Mrugalski [Thu, 12 Jan 2017 11:51:48 +0000 (12:51 +0100)]
[5031] Hooks parser now detects if hooksmgr failed to load libraries.
Francis Dupont [Thu, 12 Jan 2017 10:37:49 +0000 (11:37 +0100)]
[5097] Added unit tests for bad pools (cf #3956)
Francis Dupont [Thu, 12 Jan 2017 09:42:14 +0000 (10:42 +0100)]
[5097] Added unit tests for user-context in min-max pools
Francis Dupont [Thu, 12 Jan 2017 09:13:31 +0000 (10:13 +0100)]
[5097] Improved pd-pools parsing, tentative fix for #3956
Francis Dupont [Thu, 12 Jan 2017 00:57:16 +0000 (00:57 +0000)]
[trac5097] regen flex/bison files
Francis Dupont [Thu, 12 Jan 2017 00:55:47 +0000 (01:55 +0100)]
[5097] Added missing user-context map in flex/bison
Francis Dupont [Thu, 12 Jan 2017 00:14:50 +0000 (01:14 +0100)]
[5097] Migrated (checkpoint as user-context are missing in flex/bison)
Thomas Markwalder [Wed, 11 Jan 2017 20:22:30 +0000 (15:22 -0500)]
[5033] - kea-dhcp6 now uses new D2ClientConfigParser
src/bin/dhcp6/json_config_parser.cc
createGlobalDhcp6ConfigParser()
- added clause to invoke new D2ClientConfigParser to
set staging config
- added clause to apply staged D2ClientConfig (formerly done
by parser commit
src/bin/dhcp6/parser_context.h
src/bin/dhcp6/parser_context.cc
aded PARSER_DHCP_DDNS context
src/bin/dhcp4/simple_parser6.h
src/bin/dhcp4/simple_parser6.cc
defined SimpleParser6::D2_CLIENT_CONFIG_DEFAULTS
SimpleParser6::setAllDefaults() - now sets defaults
for D2ClientConfig
src/bin/dhcp6/tests/d2_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
Updated replace-name-mode values and tests
(true/false no longer supported)
doc/guide/dhcp6-srv.xml
Updated, replace-client-name no longer accepts booleans
Thomas Markwalder [Wed, 11 Jan 2017 18:47:39 +0000 (13:47 -0500)]
[5033] - migrated D2ClientConfigParser to SimpleParser, kea-dhcp4 uses it
src/bin/dhcp4/json_config_parser.cc
createGlobalDhcp4ConfigParser()
- added clause to invoke new D2ClientConfigParser to
set staging config
- added clause to apply staged D2ClientConfig (formerly done
by parser commit
src/bin/dhcp4/parser_context.h
src/bin/dhcp4/parser_context.cc
aded PARSER_DHCP_DDNS context
src/bin/dhcp4/simple_parser4.h
src/bin/dhcp4/simple_parser4.cc
defined SimpleParser4::D2_CLIENT_CONFIG_DEFAULTS
SimpleParser4::setAllDefaults() - now sets defaults
for D2ClientConfig
src/bin/dhcp4/tests/d2_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
Updated replace-name-mode values (true/false no longer supported)
src/lib/dhcpsrv/parsers/dhcp_parsers.h
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
D2ClientConfig now derives from SimpleParser
src/lib/dhcpsrv/srv_config.h
src/lib/dhcpsrv/srv_config.cc
Added a D2ClientConfigPtr member to SrvConfig.
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
Updated tests to set D2 client config defaults
doc/guide/dhcp4-srv.xml
Updated, replace-client-name no longer accepts booleans
Francis Dupont [Tue, 10 Jan 2017 22:29:40 +0000 (23:29 +0100)]
[master] Missing ; after class declaration
Francis Dupont [Tue, 10 Jan 2017 22:25:58 +0000 (22:25 +0000)]
[master regen flex/bison files
Francis Dupont [Tue, 10 Jan 2017 22:24:39 +0000 (23:24 +0100)]
[master] Finished merge of trac5035 (migrate lease expiration config)
Francis Dupont [Tue, 10 Jan 2017 20:39:22 +0000 (20:39 +0000)]
[trac5096] regen flex/bison files
Francis Dupont [Tue, 10 Jan 2017 20:38:05 +0000 (21:38 +0100)]
[5096] Added cql database type
Francis Dupont [Tue, 10 Jan 2017 20:33:19 +0000 (21:33 +0100)]
[5096] Migrated to Simple (but cql is missing)
Tomek Mrugalski [Tue, 10 Jan 2017 15:11:15 +0000 (16:11 +0100)]
[master] ChangeLog updated.
Francis Dupont [Tue, 10 Jan 2017 15:10:17 +0000 (15:10 +0000)]
[trac5096] regen flex/bison files
Francis Dupont [Tue, 10 Jan 2017 15:08:06 +0000 (16:08 +0100)]
[5096] Updated flex/bison parsers for databases
Francis Dupont [Tue, 10 Jan 2017 14:07:03 +0000 (15:07 +0100)]
[5096] [4096] Spit bison type rule, removed server-id
Tomek Mrugalski [Tue, 10 Jan 2017 13:48:57 +0000 (14:48 +0100)]
[master] Merge branch 'trac5020' (interfaces parser migrated to SimpleParser)
# Conflicts:
# src/bin/dhcp4/json_config_parser.cc
# src/bin/dhcp6/json_config_parser.cc
Francis Dupont [Mon, 9 Jan 2017 22:19:08 +0000 (23:19 +0100)]
[master] Tentative fix for Clang static analyzer
Tomek Mrugalski [Mon, 9 Jan 2017 17:55:47 +0000 (18:55 +0100)]
[master] Merge branch 'trac5044' (DUID configuration to SimpleParser)
# Conflicts:
# src/bin/dhcp6/json_config_parser.cc
Francis Dupont [Sat, 7 Jan 2017 00:40:07 +0000 (00:40 +0000)]
[trac5044fd] regen
Francis Dupont [Sat, 7 Jan 2017 00:38:48 +0000 (01:38 +0100)]
[5044fd] Added DUID type tokens within DUID_TYPE context
Francis Dupont [Thu, 22 Dec 2016 09:55:43 +0000 (10:55 +0100)]
[5093] Stop createLinkLayerId at first Ethernet like + en3 -> en7
Francis Dupont [Thu, 22 Dec 2016 09:46:54 +0000 (10:46 +0100)]
[5093] Put the right comparison according to its comment
Tomek Mrugalski [Mon, 9 Jan 2017 14:38:06 +0000 (15:38 +0100)]
[5020] Obsolete iface_parser code removed from dhcp6
Tomek Mrugalski [Mon, 9 Jan 2017 14:32:44 +0000 (15:32 +0100)]
[5020] Obsolete iface_parser removed.
Francis Dupont [Fri, 6 Jan 2017 23:38:48 +0000 (23:38 +0000)]
[trac5020fd] regen
Francis Dupont [Fri, 6 Jan 2017 23:37:37 +0000 (00:37 +0100)]
[5020fd] Unspecialized raw/udp, added new syntactic context