summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-09-22 22:29:45 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2025-09-22 22:29:45 +0200
commitf2f2d3c0f0c8f6772f4f24b4bd7203837c1afed9 (patch)
treebc29f17798fbf162355c78cf9246ad3e20c9bd1b /src/conf_mode
parentc035c4d627ed53c9744d956b7a4d9878e36020cb (diff)
downloadvyos-1x-f2f2d3c0f0c8f6772f4f24b4bd7203837c1afed9.tar.gz
vyos-1x-f2f2d3c0f0c8f6772f4f24b4bd7203837c1afed9.zip
kea: T7281: Use correct Kea unit files
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/service_dhcp-server.py6
-rwxr-xr-xsrc/conf_mode/service_dhcpv6-server.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/service_dhcp-server.py b/src/conf_mode/service_dhcp-server.py
index ae0338996..d92321ab8 100755
--- a/src/conf_mode/service_dhcp-server.py
+++ b/src/conf_mode/service_dhcp-server.py
@@ -582,9 +582,9 @@ def apply(dhcp):
# if running in vrf, set base diffrently
if argv and len(argv) > 1:
vrf_name = argv[1]
- services = [f'kea-dhcp4@{vrf_name}', f'kea-dhcp-ddns@{vrf_name}']
+ services = [f'isc-kea-dhcp4-server@{vrf_name}', f'isc-kea-dhcp-ddns-server@{vrf_name}']
else:
- services = ['kea-dhcp4', 'kea-dhcp-ddns']
+ services = ['isc-kea-dhcp4-server', 'isc-kea-dhcp-ddns-server']
if not dhcp or 'disable' in dhcp:
for service in services:
@@ -598,7 +598,7 @@ def apply(dhcp):
for service in services:
action = 'restart'
- if 'kea-dhcp-ddns-server' in service and 'dynamic_dns_update' not in dhcp:
+ if 'isc-kea-dhcp-ddns-server' in service and 'dynamic_dns_update' not in dhcp:
action = 'stop'
call(f'systemctl {action} {service}.service')
diff --git a/src/conf_mode/service_dhcpv6-server.py b/src/conf_mode/service_dhcpv6-server.py
index 1b2f07e43..b6a7a87c3 100755
--- a/src/conf_mode/service_dhcpv6-server.py
+++ b/src/conf_mode/service_dhcpv6-server.py
@@ -289,9 +289,9 @@ def apply(dhcpv6):
# if running in vrf, set base diffrently
if argv and len(argv) > 1:
vrf_name = argv[1]
- service_name = f'kea-dhcp6@{vrf_name}.service'
+ service_name = f'isc-kea-dhcp6-server@{vrf_name}.service'
else:
- service_name = 'kea-dhcp6.service'
+ service_name = 'isc-kea-dhcp6-server.service'
# bail out early - looks like removal from running config
if not dhcpv6 or 'disable' in dhcpv6: