-
Notifications
You must be signed in to change notification settings - Fork 17
Description
First off, I am loving this project. It is going to work very well for what I need to use it for.
I had to modify your code slightly to get this to work with kea 2.0.2. It looks like support for getting a lease using hwaddr, client_id, and subnet_id was removed so I had to comment out this section in lease_mgr.cc
else if (!addr && hwaddr != 0 && client_id != 0 && have_subnet_id) {
// Lease4Ptr getLease4(const ClientId &client_id, const HWAddr &hwaddr, SubnetID subnet_id)
ClientIdPtr clientid_ptr = ClientId::fromText(client_id);
HWAddr hw = HWAddr::fromText(hwaddr);
ptr = self->mgr->getLease4(*clientid_ptr, hw, subnet_id);
}
I have also added a couple class methods to simplify a few of the tasks that I have to do. If you are interested I can send those back to you or I can fork your code and add them there.