summaryrefslogtreecommitdiff
path: root/python/vyos/template.py
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-03-20 16:49:46 +0100
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2025-04-14 11:50:41 +0200
commitf7c5c77376b9138d239cdccda605713b5d7681e1 (patch)
tree6d4d12413d9408868be0104928f393dbb4c17a75 /python/vyos/template.py
parentf3e77facc06750caafb100cdc6e96a1dc362182a (diff)
downloadveeos-1x-f7c5c77376b9138d239cdccda605713b5d7681e1.tar.gz
veeos-1x-f7c5c77376b9138d239cdccda605713b5d7681e1.zip
kea: T7281: Add support for ping-check in Kea
Diffstat (limited to 'python/vyos/template.py')
-rwxr-xr-xpython/vyos/template.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py
index f5baf8dbd..7ba85a046 100755
--- a/python/vyos/template.py
+++ b/python/vyos/template.py
@@ -873,7 +873,8 @@ def kea_shared_network_json(shared_networks):
network = {
'name': name,
'authoritative': ('authoritative' in config),
- 'subnet4': []
+ 'subnet4': [],
+ 'user-context': {}
}
if 'option' in config:
@@ -885,6 +886,9 @@ def kea_shared_network_json(shared_networks):
if 'bootfile_server' in config['option']:
network['next-server'] = config['option']['bootfile_server']
+ if 'ping_check' in config:
+ network['user-context']['enable-ping-check'] = True
+
if 'subnet' in config:
for subnet, subnet_config in config['subnet'].items():
if 'disable' in subnet_config: