2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

[#104,!290] kea-dhcpv6 now supports fetching config from backends

Infrastructure has been added to kea-dhcp6 such that it can
    now be configured to fetch full and then periodic updates
    from config backends.

    Merging the actual fetched content will be done under subsequent
    issues.

src/bin/dhcp6
    ctrl_dhcp6_srv.*
        - ControlledDhcpv6Srv::processConfig() - added logic to schedule CB update timer
        - ControlledDhcpv6Srv::cbFetchUpdates() - new callback function for CB updates

    dhcp6_lexer.ll
    dhcp6_parser.yy
        -  Added config-fetch-wait-time

    dhcp6_messages.mes
        -  New log messages

    dhcp6_srv.*
        - Dhcpv6Srv::cb_control_  - new member for config backend access
        - Dhcpv6Srv::inTestMode() - new function to test for unit test mode

    json_config_parser.cc
        - configureDhcp6Server() - invokes full fetch from config backend

src/bin/dhcp6/tests
    config_backend_unittest.cc - new file/tests for config backend testing
    config_parser_unittest.cc - updated
    get_config_unittest.cc - rebuild tests
    kea_controller_unittest.cc - added CB control/timer tests

src/lib/dhcpsrv/
    dhcpsrv_messages.mes - added log message
	cb_ctl_dhcp6.* - new files that provide v6 impl of config backend controller

doc/examples/kea6/all-keys-current.json - added config-fetch-wait-time
This commit is contained in:
Thomas Markwalder
2019-03-26 15:12:06 -04:00
parent 62ad7da5f7
commit f5fe96c6ee
27 changed files with 6168 additions and 6121 deletions

View File

@@ -1,5 +1,4 @@
// Generated 201903231444
// A Bison parser, made by GNU Bison 3.3.2.
// A Bison parser, made by GNU Bison 3.2.1.
// Starting with Bison 3.2, this file is useless: the structure it
// used to define is now defined with the parser itself.