Skip to content

Support for kea 2.0.2 #6

Description

@aasay

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions