]> git.ipfire.org Git - thirdparty/kea.git/commit
[#401,!254] kea-dhcp4 now merges CB options into current config
authorThomas Markwalder <tmark@isc.org>
Mon, 4 Mar 2019 15:54:53 +0000 (10:54 -0500)
committerThomas Markwalder <tmark@isc.org>
Mon, 4 Mar 2019 15:54:53 +0000 (10:54 -0500)
commitf0e6cabb47d3d38d7416bd0c623f5e86cff73306
treec9ae57404f211bd68f9f9eb1e85e149a4a828bbe
parent40c856c0fbfa31e18d59d4a6fc9d594cdb29a74e
[#401,!254] kea-dhcp4 now merges CB options into current config

Basic merging works, need to add validation against definitions.

src/bin/dhcp4/tests/config_backend_unittest.cc
    TEST_F(Dhcp4CBTest, mergeOptions) - enabled and updated

src/lib/dhcpsrv/cfg_option.*
    CfgOption::merge(CfgOption& other) - new method, conformant
    to others, that merges/updates a config option from another

src/lib/dhcpsrv/srv_config.cc
    SrvConfig::merge4(SrvConfig& other) - modified to
    merge configured options

src/lib/dhcpsrv/tests/cfg_option_unittest.cc
    TEST_F(CfgOptionTest, merge) - new test
src/bin/dhcp4/tests/config_backend_unittest.cc
src/lib/dhcpsrv/cfg_option.cc
src/lib/dhcpsrv/cfg_option.h
src/lib/dhcpsrv/srv_config.cc
src/lib/dhcpsrv/tests/cfg_option_unittest.cc