2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#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
This commit is contained in:
Thomas Markwalder
2024-11-19 15:23:08 -05:00
parent f4a25f1776
commit f414f9aa2d
34 changed files with 6420 additions and 4510 deletions

View File

@@ -344,6 +344,17 @@
// to use for the DNS TTL.
"ddns-ttl-percent": 0.75,
// When greater than 0 it will be used as the DNS TTL. Specified in seconds.
"ddns-ttl": 0,
// When greater than 0 it used as the lower boundary for calculated DNS TTL values.
// Specified in seconds.
"ddns-ttl-min": 24000,
// When greater than 0 it used as the upper boundary for calculated DNS TTL values.
// Specified in seconds.
"ddns-ttl-max": 64000,
// Time in seconds specifying how long a declined lease should be
// excluded from DHCP assignments. The default value is 86400 (24 hours).
"decline-probation-period": 86400,
@@ -895,6 +906,15 @@
// Shared-network level value. See description at the global level.
"ddns-ttl-percent": 0.65,
// Shared-network level value. See description at the global level.
"ddns-ttl": 0,
// Shared-network level value. See description at the global level.
"ddns-ttl-min": 10000,
// Shared-network level value. See description at the global level.
"ddns-ttl-max": 20000,
// Shared-network level value. See description at the global level.
"hostname-char-replacement": "x",
@@ -1035,6 +1055,15 @@
// Subnet-level value. See description at the global level.
"ddns-ttl-percent": 0.55,
// Subnet-level value. See description at the global level.
"ddns-ttl": 0,
// Subnet-evel value. See description at the global level.
"ddns-ttl-min": 10000,
// Subnet-level value. See description at the global level.
"ddns-ttl-max": 20000,
// Subnet-level value. See description at the global level.
"hostname-char-replacement": "x",