today we pass lease file via cmdline arguments like this: --dhcp-lease-file /var/lib/dhclient/dhclient.leases.
The below is the flow needed in the runCommandDaemon (code) :
- we can use nmcli to fetch leases like I showed on the above example. I saw few go packages out there to do that... I think they use D-BUS...
- if we successful, we exit
- if not, we can try networkctl for systemd-networkd after
- if we successful, we exit
- lastly as backup option we can parse customer provided lease file or extend this to folder....
for reference: #403, #396, #418
today we pass lease file via cmdline arguments like this: --dhcp-lease-file /var/lib/dhclient/dhclient.leases.
The below is the flow needed in the runCommandDaemon (code) :
for reference: #403, #396, #418