Skip to content

single file vs folder for dhcp leases #421

@bhoopesh369

Description

@bhoopesh369

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions