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-22 18:50:23 +0200
commit44c5fe76136a9a782b6536f80d9b30b10606a92a (patch)
tree7743f8846ff43b9686cb2ccd41b040c4430e86df /src/conf_mode
parent1160c2e55782c51d9f4fc4cd93b8b293880bc8c2 (diff)
downloadvyos-1x-44c5fe76136a9a782b6536f80d9b30b10606a92a.tar.gz
vyos-1x-44c5fe76136a9a782b6536f80d9b30b10606a92a.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' (cherry picked from commit 3b9bfe322fd4a7d652b25b28cbcd4825fee0ea4b)
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 b80da26af..e7607ed92 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.