unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Fix DHCP commands #245

Closed pederhan closed 5 months ago

pederhan commented 5 months ago

The new dhcp disassoc implementation is incredibly ugly; I think I need to take another look at it. Maybe see if we can create some sort of abstraction over fetching an IP given a host or IP string argument.

terjekv commented 5 months ago

get_host_by_any_means allows for fetching by IP, but the problem here is that we need the exact IP for use later. We could do a fetch via get_host_by_any_means and then cycle through the IPs if we were given an IP (or a Mac actually, same issue arises then).