Skip to content

Commit f2f2d3c

Browse files
committed
kea: T7281: Use correct Kea unit files
1 parent c035c4d commit f2f2d3c

12 files changed

Lines changed: 21 additions & 21 deletions

File tree

op-mode-definitions/monitor-log.xml.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
<properties>
4545
<help>Monitor last lines of DHCP server log</help>
4646
</properties>
47-
<command>journalctl --no-hostname --follow --boot --unit kea-dhcp4.service</command>
47+
<command>journalctl --no-hostname --follow --boot --unit isc-kea-dhcp4-server.service</command>
4848
<children>
4949
<tagNode name="vrf">
5050
<properties>
5151
<help>Monitor last lines of DHCP server log on specific vrf</help>
5252
</properties>
53-
<command>journalctl --no-hostname --follow --boot --unit "kea-dhcp4@$6.service"</command>
53+
<command>journalctl --no-hostname --follow --boot --unit "isc-kea-dhcp4-server@$6.service"</command>
5454
</tagNode>
5555
</children>
5656
</node>
@@ -82,13 +82,13 @@
8282
<properties>
8383
<help>Monitor last lines of DHCPv6 server log</help>
8484
</properties>
85-
<command>journalctl --no-hostname --follow --boot --unit kea-dhcp6.service</command>
85+
<command>journalctl --no-hostname --follow --boot --unit isc-kea-dhcp6-server.service</command>
8686
<children>
8787
<tagNode name="vrf">
8888
<properties>
8989
<help>Monitor last lines of DHCPv6 server log on specific vrf</help>
9090
</properties>
91-
<command>journalctl --no-hostname --follow --boot --unit "kea-dhcp6@$6.service"</command>
91+
<command>journalctl --no-hostname --follow --boot --unit "isc-kea-dhcp6-server@$6.service"</command>
9292
</tagNode>
9393
</children>
9494
</node>

op-mode-definitions/show-log.xml.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@
104104
<properties>
105105
<help>Show log for DHCP server</help>
106106
</properties>
107-
<command>journalctl --no-hostname --boot --unit kea-dhcp4.service</command>
107+
<command>journalctl --no-hostname --boot --unit isc-kea-dhcp4-server.service</command>
108108
<children>
109109
<tagNode name="vrf">
110110
<properties>
111111
<help>Monitor last lines of DHCP server log on specific vrf</help>
112112
</properties>
113-
<command>journalctl --no-hostname --follow --boot --unit "kea-dhcp4@$6.service"</command>
113+
<command>journalctl --no-hostname --follow --boot --unit "isc-kea-dhcp4-server@$6.service"</command>
114114
</tagNode>
115115
</children>
116116
</node>
@@ -142,13 +142,13 @@
142142
<properties>
143143
<help>Show log for DHCPv6 server</help>
144144
</properties>
145-
<command>journalctl --no-hostname --boot --unit kea-dhcp6.service</command>
145+
<command>journalctl --no-hostname --boot --unit isc-kea-dhcp6-server.service</command>
146146
<children>
147147
<tagNode name="vrf">
148148
<properties>
149149
<help>Monitor last lines of DHCPv6 server log on specific vrf</help>
150150
</properties>
151-
<command>journalctl --no-hostname --boot --unit "kea-dhcp6@$6.service"</command>
151+
<command>journalctl --no-hostname --boot --unit "isc-kea-dhcp6-server@$6.service"</command>
152152
</tagNode>
153153
</children>
154154
</node>

src/conf_mode/service_dhcp-server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,9 @@ def apply(dhcp):
582582
# if running in vrf, set base diffrently
583583
if argv and len(argv) > 1:
584584
vrf_name = argv[1]
585-
services = [f'kea-dhcp4@{vrf_name}', f'kea-dhcp-ddns@{vrf_name}']
585+
services = [f'isc-kea-dhcp4-server@{vrf_name}', f'isc-kea-dhcp-ddns-server@{vrf_name}']
586586
else:
587-
services = ['kea-dhcp4', 'kea-dhcp-ddns']
587+
services = ['isc-kea-dhcp4-server', 'isc-kea-dhcp-ddns-server']
588588

589589
if not dhcp or 'disable' in dhcp:
590590
for service in services:
@@ -598,7 +598,7 @@ def apply(dhcp):
598598
for service in services:
599599
action = 'restart'
600600

601-
if 'kea-dhcp-ddns-server' in service and 'dynamic_dns_update' not in dhcp:
601+
if 'isc-kea-dhcp-ddns-server' in service and 'dynamic_dns_update' not in dhcp:
602602
action = 'stop'
603603

604604
call(f'systemctl {action} {service}.service')

src/conf_mode/service_dhcpv6-server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def apply(dhcpv6):
289289
# if running in vrf, set base diffrently
290290
if argv and len(argv) > 1:
291291
vrf_name = argv[1]
292-
service_name = f'kea-dhcp6@{vrf_name}.service'
292+
service_name = f'isc-kea-dhcp6-server@{vrf_name}.service'
293293
else:
294-
service_name = 'kea-dhcp6.service'
294+
service_name = 'isc-kea-dhcp6-server.service'
295295

296296
# bail out early - looks like removal from running config
297297
if not dhcpv6 or 'disable' in dhcpv6:

src/etc/systemd/system/kea-dhcp-ddns.service.d/override.conf renamed to src/etc/systemd/system/isc-kea-dhcp-ddns-server.service.d/override.conf

File renamed without changes.
File renamed without changes.

src/etc/systemd/system/kea-dhcp4.service.d/override.conf renamed to src/etc/systemd/system/isc-kea-dhcp4-server.service.d/override.conf

File renamed without changes.
File renamed without changes.

src/etc/systemd/system/kea-dhcp6.service.d/override.conf renamed to src/etc/systemd/system/isc-kea-dhcp6-server.service.d/override.conf

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)