summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-11-20 15:20:44 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2025-11-20 15:28:17 +0100
commit3ca132fe22f732a7d4191e7e1c1d2b00d4206690 (patch)
treeb35c5f8fb8ec8fff164e860b83556b903576d3eb /data
parent4f2d7c38ca2a0c35e81e0bf8e9a0e4abdf7fdfcc (diff)
downloadvyos-1x-3ca132fe22f732a7d4191e7e1c1d2b00d4206690.tar.gz
vyos-1x-3ca132fe22f732a7d4191e7e1c1d2b00d4206690.zip
kea: T7913: Fixes for ping-check handling
- Kea docs state multi-threaded mode is required for ping checking. - Parent scope needs enabling if shared-network/subnet has ping-check enabled.
Diffstat (limited to 'data')
-rw-r--r--data/templates/dhcp-server/kea-dhcp4.conf.j27
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/dhcp-server/kea-dhcp4.conf.j2 b/data/templates/dhcp-server/kea-dhcp4.conf.j2
index 7302c2cad..8519689a9 100644
--- a/data/templates/dhcp-server/kea-dhcp4.conf.j2
+++ b/data/templates/dhcp-server/kea-dhcp4.conf.j2
@@ -28,6 +28,9 @@
"persist": true,
"name": "{{ lease_file }}"
},
+ "multi-threading": {
+ "enable-multi-threading": true
+ },
{% if client_class is vyos_defined %}
"client-classes": {{ client_class | kea_client_class_json }},
{% endif %}
@@ -75,16 +78,18 @@
}
},
{% endif %}
+{% if any_ping_check is vyos_defined %}
{
"library": "/usr/lib/{{ machine }}-linux-gnu/kea/hooks/libdhcp_ping_check.so",
"parameters": {
- "enable-ping-check" : false,
+ "enable-ping-check" : true,
"min-ping-requests" : 1,
"reply-timeout" : 100,
"ping-cltt-secs" : 60,
"ping-channel-threads" : 0
}
},
+{% endif %}
{
"library": "/usr/lib/{{ machine }}-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",
"parameters": {}