aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dhcpns/config/dhcp4.py
diff options
context:
space:
mode:
authorOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2025-03-28 14:07:36 +0100
committerOle Mathias Heggem <olemathias.aa.heggem@gmail.com>2025-03-28 14:07:36 +0100
commit93ee858b17d9a4c13d2525743546e85329e82f14 (patch)
tree8755772f6af35c8a53be353bc6e7813291028d6b /tools/dhcpns/config/dhcp4.py
parent9dc4d7eedb7ddd89d1e95e3fd55ccffd30a3e0df (diff)
tg25 preptg23-dhcp
Diffstat (limited to 'tools/dhcpns/config/dhcp4.py')
-rw-r--r--tools/dhcpns/config/dhcp4.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/dhcpns/config/dhcp4.py b/tools/dhcpns/config/dhcp4.py
index eeabe5e..bb5ae15 100644
--- a/tools/dhcpns/config/dhcp4.py
+++ b/tools/dhcpns/config/dhcp4.py
@@ -17,7 +17,7 @@ def base(subnet4):
{
"name": "config-file-name",
"space": "vendor-encapsulated-options-space",
- "supersede": "ifelse(option[82].option[1].exists,concat('api/templates/magic.conf/a=', option[82].option[1].hex),'')"
+ "supersede": "ifelse(option[82].option[1].exists,concat('ztp', option[82].option[1].hex),'')"
}
]
},
@@ -28,13 +28,6 @@ def base(subnet4):
}
]
}
- },
- {
- "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_run_script.so",
- "parameters": {
- "name": "/etc/kea/gondul.sh",
- "sync": False
- }
}
],
"dhcp-ddns": {
@@ -45,7 +38,7 @@ def base(subnet4):
"ddns-override-no-update": False,
"ddns-override-client-update": False,
"ddns-replace-client-name": "always",
- "ddns-generated-prefix": "dyn",
+ "ddns-generated-prefix": "dhcp",
"ddns-update-on-renew": False,
"ddns-use-conflict-resolution": True,
"interfaces-config": {
@@ -75,7 +68,7 @@ def base(subnet4):
"authoritative": True,
"renew-timer": 900,
"rebind-timer": 1800,
- "valid-lifetime": 3600,
+ "valid-lifetime": 3600, # TODO 4 timer
"option-def": [
{
"name": "image-file-name",