summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-06-16 02:02:25 +0200
committerChristian Poessinger <christian@poessinger.com>2019-06-16 02:02:25 +0200
commit3b9bfe322fd4a7d652b25b28cbcd4825fee0ea4b (patch)
tree51fa0b62092c1f077fb67a580c7726b1ee5e7764 /src/conf_mode
parent163905e7e8977ae82c4a93c992b8f21f91144918 (diff)
downloadvyos-1x-3b9bfe322fd4a7d652b25b28cbcd4825fee0ea4b.tar.gz
vyos-1x-3b9bfe322fd4a7d652b25b28cbcd4825fee0ea4b.zip
DHCPDv6 T1433: fix wrong lease file name
A wrong lease file caused the show command to fail: vyos@vyos:~$ show dhcpv6 server leases Traceback (most recent call last): File "/usr/libexec/vyos/op_mode/show_dhcpv6.py", line 81, in <module> leases = get_leases(lease_file, state='active') File "/usr/libexec/vyos/op_mode/show_dhcpv6.py", line 44, in get_leases leases = IscDhcpLeases(lease_file).get() File "/usr/lib/python3/dist-packages/isc_dhcp_leases/iscdhcpleases.py", line 110, in get with open(self.filename) as lease_file: FileNotFoundError: [Errno 2] No such file or directory: '/config/dhcpdv6.leases'
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dhcpv6_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcpv6_server.py b/src/conf_mode/dhcpv6_server.py
index bb3e6e90d..8199c6a53 100755
--- a/src/conf_mode/dhcpv6_server.py
+++ b/src/conf_mode/dhcpv6_server.py
@@ -28,7 +28,7 @@ from vyos.config import Config
from vyos import ConfigError
config_file = r'/etc/dhcp/dhcpd6.conf'
-lease_file = r'/config/dhcpd6.leases'
+lease_file = r'/config/dhcpdv6.leases'
daemon_config_file = r'/etc/default/isc-dhcpv6-server'
# Please be careful if you edit the template.