diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-03-08 18:54:57 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-03-08 19:03:06 +0100 |
commit | a6700c7d3b75854c3b213b65951a51464cd073be (patch) | |
tree | c1fb68e7c98e066b18f53612e4498f6a26743355 /debian | |
parent | 2100c5947b143d73afa8cc23d8ca80264aad8dc6 (diff) | |
download | vyos-1x-a6700c7d3b75854c3b213b65951a51464cd073be.tar.gz vyos-1x-a6700c7d3b75854c3b213b65951a51464cd073be.zip |
T1277: [dhcpv6-server] bugfix 'show dhcpv6 server leases'
The script did not check if the service was actually configured or not.
This caused a FileNotFoundError for unconfigured services.
vyos@vyos:~$ show dhcpv6 server leases
Traceback (most recent call last):
File "/usr/libexec/vyos/op_mode/show_dhcpv6.py", line 77, in <module>
leases = get_leases(lease_file, state='active')
File "/usr/libexec/vyos/op_mode/show_dhcpv6.py", line 46, 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 'debian')
0 files changed, 0 insertions, 0 deletions