summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-10-12 15:26:11 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2025-10-12 15:26:11 +0200
commit963eab40998e3c0c990912a84e58181aa12b058a (patch)
treec49af1139d8a7a40b5a79e1358670fdf15cc0030 /src
parenta1be2ee22cd058d5e18e6ef4fb3ec6468a38aa37 (diff)
downloadvyos-1x-963eab40998e3c0c990912a84e58181aa12b058a.tar.gz
vyos-1x-963eab40998e3c0c990912a84e58181aa12b058a.zip
dhcp6: T7882: Restart dhcp6c if PD is defined
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/netplug/vyos-netplug-dhcp-client10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/etc/netplug/vyos-netplug-dhcp-client b/src/etc/netplug/vyos-netplug-dhcp-client
index 31a0cc6a7..d538f8b52 100755
--- a/src/etc/netplug/vyos-netplug-dhcp-client
+++ b/src/etc/netplug/vyos-netplug-dhcp-client
@@ -56,6 +56,8 @@ if in_out == 'out':
if is_systemd_service_active(systemdV6_service):
cmd(f'systemctl stop {systemdV6_service}')
elif in_out == 'in':
+ v6_restart = False
+
if config.exists_effective(interface_path + ['address']):
tmp = config.return_effective_values(interface_path + ['address'])
# Always (re-)start the DHCP(v6) client service. If the DHCP(v6) client
@@ -68,4 +70,10 @@ elif in_out == 'in':
if 'dhcp' in tmp:
cmd(f'systemctl restart {systemdV4_service}')
if 'dhcpv6' in tmp:
- cmd(f'systemctl restart {systemdV6_service}')
+ v6_restart = True
+
+ if config.exists_effective(interface_path + ['dhcpv6-options', 'pd']):
+ v6_restart = True
+
+ if v6_restart:
+ cmd(f'systemctl restart {systemdV6_service}')