summaryrefslogtreecommitdiff
path: root/src/op_mode/show_dhcp.py
AgeCommit message (Collapse)Author
2021-06-10dhcp-server: T2717: Fix DHCP pool size in statisticsRobert Schindler
The calculated size of DHCP server address pools was not corrent. The fact that both boundaries of address ranges are inclusive wasn't accounted for, so the calculated size was too small by 1 address per range. (cherry picked from commit 452701bef32c07e0c2a49d37fac93a94038dace1)
2020-01-17T1376: improve show_dhcp and show_dhcpv6Jernej Jakob
(cherry picked from commit 9f20bee81c0a0f4632aa152297d0fdf89139d6af)
2020-01-17[dhcp] T1416: fix DHCP server status viewChristian Poessinger
(cherry picked from commit 7a27f6f93b58abd2fabc9e80e429e14a70ebd6aa)
2019-03-08T1277: [dhcp-server] bugfix 'show dhcp server leases'Christian Poessinger
The script did not check if the service was actually configured or not. This caused a FileNotFoundError for unconfigured services. vyos@vyos:~$ show dhcp server leases Traceback (most recent call last): File "/usr/libexec/vyos/op_mode/show_dhcp.py", line 123, in <module> leases = get_leases(lease_file, state='active') File "/usr/libexec/vyos/op_mode/show_dhcp.py", line 60, 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/dhcpd.leases' (cherry picked from commit ed620ef7e8ba741e165698c558b110a31cc35dfd)
2018-10-13Update show_dhcp.pyEwald van Geffen
I don't really do python, please check/test.
2018-09-04T823: extend the new DHCP op mode.Daniil Baturin
2018-09-02T823: add a new DHCP op mode script, only capable of showing leases now.Daniil Baturin