diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-10-14 11:27:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 11:27:54 +0300 |
| commit | 749954d753211fa653f9239bb81b385a846ed816 (patch) | |
| tree | 0ff23f3cc829d4d12287dea99a84a1caa288f25d /src | |
| parent | 1b16870043774cf66c5d37ffb281476a42ce8b8b (diff) | |
| parent | 963eab40998e3c0c990912a84e58181aa12b058a (diff) | |
| download | vyos-1x-749954d753211fa653f9239bb81b385a846ed816.tar.gz vyos-1x-749954d753211fa653f9239bb81b385a846ed816.zip | |
Merge pull request #4793 from sarthurdev/T7882
dhcp6: T7882: Restart dhcp6c if PD is defined
Diffstat (limited to 'src')
| -rwxr-xr-x | src/etc/netplug/vyos-netplug-dhcp-client | 10 |
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}') |
