summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp4/json_config_parser.cc
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2024-11-19 21:23:08 +0100
committerThomas Markwalder <tmark@isc.org>2024-12-16 16:15:09 +0100
commitf414f9aa2d7d1743c2553445a828fdfdc13a1b3d (patch)
tree9caaba2c09c2268a859472cbd272133e7f7fa810 /src/bin/dhcp4/json_config_parser.cc
parent[#3691] bump version in configure.ac (diff)
downloadkea-f414f9aa2d7d1743c2553445a828fdfdc13a1b3d.tar.xz
kea-f414f9aa2d7d1743c2553445a828fdfdc13a1b3d.zip
[#2819] kea-dhcp4 supports ddns-ttl, min, and max
Added support for ddns-ttl,ddns-ttl-min, and ddsn-ttl-max to global,shared-network, and subnet for kea-dhcp4 Changes to be committed: modified: doc/examples/kea4/all-keys.json modified: src/bin/dhcp4/dhcp4_lexer.cc modified: src/bin/dhcp4/dhcp4_lexer.ll modified: src/bin/dhcp4/dhcp4_parser.cc modified: src/bin/dhcp4/dhcp4_parser.h modified: src/bin/dhcp4/dhcp4_parser.yy modified: src/bin/dhcp4/json_config_parser.cc modified: src/bin/dhcp4/tests/config_parser_unittest.cc modified: src/bin/dhcp4/tests/fqdn_unittest.cc modified: src/bin/dhcp4/tests/get_config_unittest.cc modified: src/bin/dhcp6/json_config_parser.cc modified: src/lib/dhcpsrv/cb_ctl_dhcp4.cc modified: src/lib/dhcpsrv/cb_ctl_dhcp6.cc modified: src/lib/dhcpsrv/cfg_globals.cc modified: src/lib/dhcpsrv/cfg_globals.h modified: src/lib/dhcpsrv/dhcpsrv_messages.cc modified: src/lib/dhcpsrv/dhcpsrv_messages.h modified: src/lib/dhcpsrv/dhcpsrv_messages.mes modified: src/lib/dhcpsrv/ncr_generator.cc modified: src/lib/dhcpsrv/ncr_generator.h modified: src/lib/dhcpsrv/network.cc modified: src/lib/dhcpsrv/network.h modified: src/lib/dhcpsrv/parsers/base_network_parser.cc modified: src/lib/dhcpsrv/parsers/simple_parser4.cc modified: src/lib/dhcpsrv/parsers/simple_parser6.cc modified: src/lib/dhcpsrv/srv_config.cc modified: src/lib/dhcpsrv/srv_config.h modified: src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc modified: src/lib/dhcpsrv/tests/ncr_generator_unittest.cc modified: src/lib/dhcpsrv/tests/network_unittest.cc modified: src/lib/dhcpsrv/tests/shared_network_parser_unittest.cc modified: src/lib/dhcpsrv/tests/srv_config_unittest.cc modified: src/lib/util/str.cc modified: src/lib/util/str.h
Diffstat (limited to 'src/bin/dhcp4/json_config_parser.cc')
-rw-r--r--src/bin/dhcp4/json_config_parser.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/dhcp4/json_config_parser.cc b/src/bin/dhcp4/json_config_parser.cc
index 5ec39ef115..46e10d4a64 100644
--- a/src/bin/dhcp4/json_config_parser.cc
+++ b/src/bin/dhcp4/json_config_parser.cc
@@ -195,6 +195,9 @@ public:
/// Global lifetime sanity checks
cfg->sanityChecksLifetime("valid-lifetime");
+ /// Sanity check global ddns-ttl parameters
+ cfg->sanityChecksDdnsTtlParameters();
+
/// Shared network sanity checks
const SharedNetwork4Collection* networks = cfg->getCfgSharedNetworks4()->getAll();
if (networks) {
@@ -673,7 +676,10 @@ processDhcp4Config(isc::data::ConstElementPtr config_set) {
(config_pair.first == "parked-packet-limit") ||
(config_pair.first == "allocator") ||
(config_pair.first == "offer-lifetime") ||
- (config_pair.first == "stash-agent-options") ) {
+ (config_pair.first == "ddns-ttl") ||
+ (config_pair.first == "ddns-ttl-min") ||
+ (config_pair.first == "ddns-ttl-max") ||
+ (config_pair.first == "stash-agent-options")) {
CfgMgr::instance().getStagingCfg()->addConfiguredGlobal(config_pair.first,
config_pair.second);
continue;