diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-12-17 01:25:22 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-12-17 01:39:26 +0100 |
commit | 8e0a54676ff2ac90b7c24e4f05b05bcebc584bd3 (patch) | |
tree | cded61e59bb7a936d299ab3a8518ca80577a77d8 /src/conf_mode/dhcp_server.py | |
parent | 03202504d559417266e437bbf53eb26ade187c07 (diff) | |
download | vyos-1x-8e0a54676ff2ac90b7c24e4f05b05bcebc584bd3.tar.gz vyos-1x-8e0a54676ff2ac90b7c24e4f05b05bcebc584bd3.zip |
dhcp: T3316: Kea DHCP and DHCPv6 fixes
* Move Kea socket permission change on-demand and speed up conf scripts
* Fix issue with DHCP reservations when no `ip-address` value
Diffstat (limited to 'src/conf_mode/dhcp_server.py')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 66f7c8057..958e90014 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -21,7 +21,6 @@ from ipaddress import ip_network from netaddr import IPAddress from netaddr import IPRange from sys import exit -from time import sleep from vyos.config import Config from vyos.pki import wrap_certificate @@ -29,7 +28,6 @@ from vyos.pki import wrap_private_key from vyos.template import render from vyos.utils.dict import dict_search from vyos.utils.dict import dict_search_args -from vyos.utils.file import chmod_775 from vyos.utils.file import write_file from vyos.utils.process import call from vyos.utils.process import run @@ -362,15 +360,6 @@ def apply(dhcp): call(f'systemctl {action} {service}.service') - # op-mode needs ctrl socket permission change - i = 0 - while not os.path.exists(ctrl_socket): - if i > 15: - break - i += 1 - sleep(1) - chmod_775(ctrl_socket) - return None if __name__ == '__main__': |