diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-31 07:28:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-31 07:28:57 +0100 |
commit | 2286b8600da6c631b17e1d5b9b341843e50f9abf (patch) | |
tree | e2032793be5a755c0e2c1c1317948ff6d244f30a /src/op_mode/clear_dhcp_lease.py | |
parent | 14dc8a8962f0a52107913423a750f36ed8e45160 (diff) | |
parent | 3192095a197ae8d74690ab5c676e6a5fabae7fae (diff) | |
download | vyos-1x-2286b8600da6c631b17e1d5b9b341843e50f9abf.tar.gz vyos-1x-2286b8600da6c631b17e1d5b9b341843e50f9abf.zip |
Merge pull request #2696 from indrajitr/kea-lfc-fix
dhcp: T3316: Adjust kea lease files' location and permissions
Diffstat (limited to 'src/op_mode/clear_dhcp_lease.py')
-rwxr-xr-x | src/op_mode/clear_dhcp_lease.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/clear_dhcp_lease.py b/src/op_mode/clear_dhcp_lease.py index 2c95a2b08..7d4b47104 100755 --- a/src/op_mode/clear_dhcp_lease.py +++ b/src/op_mode/clear_dhcp_lease.py @@ -28,7 +28,7 @@ from vyos.utils.commit import commit_in_progress config = ConfigTreeQuery() base = ['service', 'dhcp-server'] -lease_file = '/config/dhcp4.leases' +lease_file = '/config/dhcp/dhcp4-leases.csv' def del_lease_ip(address): @@ -52,7 +52,6 @@ def is_ip_in_leases(address): Return True if address found in the lease file """ leases = kea_parse_leases(lease_file) - lease_ips = [] for lease in leases: if address == lease['address']: return True |