2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +00:00

132 Commits

Author SHA1 Message Date
Wlodek Wencel
4125b128d0 [#2107] parsers regen for release 2021-09-27 07:39:31 +00:00
Thomas Markwalder
f914dd9c96 [#1307] Added parked-packet-limit parameter to kea-dhcp4
Can be parsed, but does nothing

doc/examples/kea4/all-keys.json
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
src/lib/dhcpsrv/parsers/simple_parser4.cc
    added parked-packet-limit

src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, parkedPacketLimit)  - new test

src/bin/dhcp4/tests/get_config_unittest.cc
    updated
2021-09-17 11:10:34 -04:00
Andrei Pavel
17412cc914
[#1947] 1.9.9 release changes 2021-06-28 10:34:31 +03:00
Wlodek Wencel
95f5255ff8 [#1887] release changes 2021-05-23 23:34:09 -07:00
Andrei Pavel
7393a39bd9
[#1860] regenerate parsers 2021-05-19 15:59:02 +03:00
Andrei Pavel
1f533cdec2
[#1772] regenerate parsers 2021-03-29 21:53:47 +03:00
Razvan Becheriu
7ad76302b1 [#1621] regenerated parsers and updated documentation 2021-03-29 21:11:29 +03:00
Andrei Pavel
47931189d1
[#1760] regenerate parsers 2021-03-26 13:02:13 +02:00
Thomas Markwalder
ba98ea39a4 [#1635] Added valid-lifetime to v4 client class
Client class definitions in kea-dhcp4 will now parse
and store valid lifetime triplet (e.g. min-valid-lifetime,
valid-lifetime, and max-valid-lifetime).  Does nothing
with it yet.

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp4/dhcp4_parser.yy
    Added support for valid-lifetime triplet to client class
    definitions

src/lib/cc/simple_parser.*
    SimpleParser::const Triplet<uint32_t>SimpleParser::parseIntTriplet()
    - was formerly dhcp::BaseNetworkParser::parseLifetime()

src/lib/dhcpsrv/client_class_def.*
    ClientClassDef::ClientClassDef
    - added Triplet<uint32_t>valid_  member

src/lib/dhcpsrv/parsers/base_network_parser.*
    Extracted BaseNetworkParser::parseLifetime - relocated
    to cc::SimpleParser

src/lib/dhcpsrv/parsers/client_class_def_parser.cc
    ClientClassDefParser::parse - added call to parseIntTriplet
    to parse valid-lifetime

src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/parsers/shared_network_parser.cc
    Replaced calls parseLifeTime() with parseIntTriplet()

src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
    TEST_F(ClientClassDefParserTest, validLifetimeTests) - new test
2021-02-19 13:21:17 -05:00
Francis Dupont
09e45abece [#1699] Regen with bison 3.7.5 2021-02-16 17:03:42 +01:00
Wlodek Wencel
3ed001b29d [#1609] regenerated parsers 2020-12-14 13:35:07 +00:00
Andrei Pavel
d57741fed6
[#1554] regenerate parsers 2020-11-23 13:40:41 +02:00
Razvan Becheriu
ecdc2eb119 [#1405] regenerated parsers 2020-11-18 15:55:23 +02:00
Razvan Becheriu
8e6bd3ee6c [#1405] generated parsers and messages 2020-11-18 15:55:23 +02:00
Francis Dupont
fa688f48f3 [#1405] Regen flex and bison 2020-11-18 15:55:23 +02:00
Thomas Markwalder
732b00e5cc [#1386] Regenerated parsers
Regenerated parsers for kea-dhcp4/6 for !976

src/bin/dhcp4/dhcp4_lexer.cc
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.h
src/bin/dhcp4/location.hh
src/bin/dhcp4/position.hh
src/bin/dhcp4/stack.hh

src/bin/dhcp6/dhcp6_lexer.cc
src/bin/dhcp6/dhcp6_parser.cc
src/bin/dhcp6/dhcp6_parser.h
src/bin/dhcp6/location.hh
src/bin/dhcp6/position.hh
src/bin/dhcp6/stack.hh
2020-10-21 14:19:53 -04:00
Thomas Markwalder
00305bc7d4 [#1386] kea-dhcp4/6 now parse ddns-use-conflict-resolution
Both servers parse and store ddns-use-conflict-resolution but
do nothing with it.

doc/examples/kea4/all-keys.json
doc/examples/kea4/with-ddns.json
doc/examples/kea6/all-keys.json
doc/examples/kea6/with-ddns.json
    Added entries for ddns-use-conflict-resolution

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/json_config_parser.cc
src/bin/dhcp4/tests/get_config_unittest.cc
    Added support for ddns-use-conflict-resolution

src/bin/dhcp4/tests/get_config_unittest.cc.skel
    Changed important calls to ASSERT_NO_THROW_LOG to ease debugging

src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/json_config_parser.cc
src/bin/dhcp6/tests/get_config_unittest.cc
    Added support for ddns-use-conflict-resolution

src/bin/dhcp6/tests/get_config_unittest.cc.skel
    Changed important calls to ASSERT_NO_THROW_LOG to ease debugging

src/lib/dhcpsrv/parsers/base_network_parser.cc
    Fixed copy/paste error
2020-10-21 14:19:52 -04:00
Francis Dupont
ab11bd4c4f [#1385] Regen flex/bison 2020-10-09 14:55:44 +00:00
Francis Dupont
ea0fba2999 [#1385] Regen flex/bison 2020-10-09 16:55:21 +02:00
Marcin Siodelski
3ef7ab5be9 [#1428] Regenerated parsers for DHCP 2020-10-08 15:44:39 +02:00
Francis Dupont
3690070d35 [#1418] Regen flex/bison 2020-10-02 15:10:30 +00:00
Francis Dupont
bb09936fe6 [#1418] Regen flex/bison 2020-10-02 16:50:45 +02:00
Francis Dupont
d37f3d38ab [#1102] regen bison 2020-09-21 12:37:07 +02:00
Francis Dupont
1dda4c1003 [1102] regen bison 2020-09-21 12:36:02 +02:00
Francis Dupont
67d5f9ac0f [1197] regen bison 2020-09-02 15:33:09 +00:00
Francis Dupont
92849b6886 [#916] Regen flex and bison files 2020-07-08 14:32:45 +02:00
Wlodek Wencel
099412a53c [#1288] code changes for 1.7.9 release 2020-06-22 13:57:32 +02:00
Francis Dupont
cfc299dc07 [#1224] Regen bison files with 3.6.2 2020-05-19 07:21:03 +00:00
Francis Dupont
0129727111 [#1185] Regen flex and bison 2020-04-24 12:57:23 +00:00
Razvan Becheriu
e5450e4e94 [#893] generated tests and parsers 2020-04-15 16:36:29 +03:00
Francis Dupont
08f8f89dfc [#1005] Regen flex and bison 2020-04-14 20:31:35 +02:00
Francis Dupont
e50ad97675 [#1010] Regen flex and bison with last tools 2020-04-02 19:12:26 +00:00
Francis Dupont
644def705f [#1070] regen flex and bison (dhcp4) 2020-03-30 14:52:23 +00:00
Francis Dupont
139942acb0 [#274,!543] regen flex/bison 2019-11-25 17:23:32 +00:00
Wlodek Wencel
6de8797d18 [#974] parsers regenerated for 1.7.1 2019-10-29 06:49:44 +01:00
Thomas Markwalder
256feda606 [#35,!517] Rework kea-dhcp4 parsing and server
src/bin/dhcp4/ctrl_dhcp4_srv.cc
    Removed setting D2ClientCfg fetch function

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    ddns-send-updates
    ddns-override-no-update
    ddns-override-client-update
    ddns-replace-client-name
    ddns-generated-prefix
    ddns-qualifying-suffix
        - added to DHCP4,SHARED_NETWORK,SUBNET4

    hostname-char-set
    hostname-char-replacement
        - added to SHARED_NETWORK,SUBNET4

src/bin/dhcp4/dhcp4_srv.cc

    Dhcpv4Srv::processClientFqdnOption()
    Dhcpv4Srv::processHostnameOption()
    Dhcpv4Srv::assignLease()
        Use scoped DdnsParams from context to make decisions, pass
        into D2ClientMgr functions, and supply hostname sanitizer

src/bin/dhcp4/json_config_parser.cc
    configureDhcp4Server()
    - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters
    - handle new "ddns-" globals

src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/d2_unittest.cc
src/bin/dhcp4/tests/dhcp4_test_utils.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.cc
    Updated and new tests
2019-10-10 08:32:44 -04:00
Michal Nowikowski
bec7d1cdb8 regenerated parsers for 1.6.0 final 2019-08-19 12:47:31 +00:00
Thomas Markwalder
c4a888a537 [#805,!5-p] Updated ChangeLog and conflicted parsers 2019-08-16 18:03:29 -04:00
Thomas Markwalder
877ca52411 [#805,!5-p] Memfile and kea-dhcp4 now suppor max-row-errors parameter
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Added max-row-errors

src/lib/database/database_connection.*
src/lib/database/dbaccess_parser.*
    Added max-row-errors

src/lib/database/tests/dbaccess_parser_unittest.cc
    New tests for max-row-errors

src/lib/dhcpsrv/lease_file_loader.h
    Changed logic value of 0 means unlimited

src/lib/dhcpsrv/memfile_lease_mgr.cc
    Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
    connection parmater value for max-row-errors or 0
    if not specified

src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
    TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
    to verify max-row-errors operation

src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
   TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
   max-row-errors
2019-08-16 17:53:40 -04:00
Thomas Markwalder
331888d203 [#805,!5-p] Memfile and kea-dhcp4 now suppor max-row-errors parameter
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Added max-row-errors

src/lib/database/database_connection.*
src/lib/database/dbaccess_parser.*
    Added max-row-errors

src/lib/database/tests/dbaccess_parser_unittest.cc
    New tests for max-row-errors

src/lib/dhcpsrv/lease_file_loader.h
    Changed logic value of 0 means unlimited

src/lib/dhcpsrv/memfile_lease_mgr.cc
    Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
    connection parmater value for max-row-errors or 0
    if not specified

src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
    TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
    to verify max-row-errors operation

src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
   TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
   max-row-errors
2019-08-16 17:49:49 -04:00
Tomek Mrugalski
2add51ecf0 [#665] Regenerated parsers using bison 3.4.1 2019-08-14 11:36:46 +02:00
Thomas Markwalder
784d55996c [#665,!460] Initial implementation, kea-dhcp4 only
Added an optional "pattern" parameter to logger output options. It supports
any combination of content described here:

https://log4cplus.sourceforge.io/docs/html/classlog4cplus_1_1PatternLayout.html

src/lib/log/output_option.*
    Added constants to define default patterns:
        OutputOption::DEFAULT_CONSOLE_PATTERN = "%D{%Y-%m-%d %H:%M:%S.%q} %-5p [%c/%i] %m\n";
        OutputOption::DEFAULT_FILE_PATTERN = "%D{%Y-%m-%d %H:%M:%S.%q} %-5p [%c/%i] %m\n";
        OutputOption::DEFAULT_SYSLOG_PATTERN = "%-5p [%c] %m\n";

    OutputOption::pattern_ - new member for conveying pattern string

src/lib/log/logger_manager_impl.*
    LoggerManagerImpl::createConsoleAppender()
    LoggerManagerImpl::createFileAppender()
    LoggerManagerImpl::createSyslogAppender() uses either
    paramater, option.pattern, or the appropriate default pattern

    LoggerManagerImpl::setAppenderLayout() - new, common method to
    set the layout, accepts a pattern string parameter

    LoggerManagerImpl::setConsoleAppenderLayout()
    LoggerManagerImpl::setSyslogAppenderLayout() - deleted

src/lib/process/log_parser.cc
    LogConfigParser::parseOutputOptions() - now supports pattern

src/lib/process/logging_info.*
    LoggingDestination::pattern_  - new member for conveying pattern string

src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Added "pattern" to the parser grammar
2019-08-14 10:57:56 +02:00
Francis Dupont
a441cbb8dc [#295,!345] regen flex/bison 2019-06-22 10:05:23 -04:00
Francis Dupont
82d87758cd [#295,!325] regen flex/bison 2019-06-22 10:05:23 -04:00
Francis Dupont
f0229ae38d [#540,!374] regen flex/bison 2019-06-13 15:21:07 +02:00
Francis Dupont
0a80edd44c [#208,!196] regen flex/bison 2019-05-22 18:10:24 -04:00
Francis Dupont
1751421161 [#208,!196] regen flex/bison 2019-05-22 18:10:24 -04:00
Marcin Siodelski
62ad7da5f7 [#103,!277] Regenerated bison files. 2019-03-26 11:21:25 +01:00
Francis Dupont
319f7709ed [master] regen flex/bison 2019-03-23 14:44:46 +00:00
Razvan Becheriu
d6ba3a0ab4 generated parsers 2019-03-22 15:48:13 +02:00