Does VyOS have a way to check allocated reservations without going through the show configuration commands ?
Something like
# run show dhcp server reservations
IP Address MAC address State Pool Hostname Origin
---------------- ----------------- ------- ---------- ---------- --------
192.168.100.192 6e:c8:dc:43:91:e2 active LAN_POOL host1 local
192.168.100.194 52:33:00:55:f3:68 active LAN_POOL host2 local
192.168.100.190 74:45:be:95:82:26 active LAN_POOL host3 local
As someone who uses the DHCP Server a fair bit, and static leases, I’m 99.9% sure the answer is “No”, at least in v1.3 with the old ISC DHCP server. Unsure in the newer builds with Kea.
tl;dr: VyOS before 1.5 use ISC DHCPD and it doesn’t have a way to know the in-use static mappings. It will work in 1.5 since the new DHCP server (KEA DHCP) handles is differently.
What I would have found helpful would be a way to see all the static mappings, no matter if in use or not. Something like show dhcp server leases state static. That seems to be possible and not too hard to implement.
Sure, let me get coffee first … but joking aside yes, I’ll consider it if time permits. But then I have no idea if it is of interested to anyone but me.
I had a look at the code, the build and (part) of the documentation. If I understand correctly VyOS < 1.5 uses python-isc-dhcp-leases to get the leases and it’s state. To get the list of static leases one would either have to exend this python module or write your own code for static leases.
And am I right that the vyos-1x (source) package is pulled in by vyos-build together with all the other packages on your mirror?
If yes, how would I start if I wanted to modify the vyos-1x package and use that modified version for my compilation. I failed to find a how-to for that and therefore would be happy if I could get an pointer how to start.