[Kea-users] Adding a lease via the API

Munroe Sollog mus3 at lehigh.edu
Fri Dec 1 15:07:50 UTC 2017


Thank you for the follow-up.  I was able to fix my issue.  The confusion
was I was putting the hook library configuration in the kea-control
configuration not the dhcp4 configuration.  Unfortunately, the error
message was misleading and lead me down the wrong path.

On Fri, Dec 1, 2017 at 8:47 AM, Marcin Siodelski <marcin at isc.org> wrote:

> Munroe,
>
> We tried to reproduce your problem with very similar configuration but
> unsuccessfully. What is the Kea version you're currently using?
>
> Marcin
>
> On 30.11.2017 14:24, Munroe Sollog wrote:
> > when I run:
> >
> > curl -X POST -H "Content-Type: application/json" -d '{ "command":
> > "config-get", "service": ["dhcp4"] }' http://localhost:8000/
> >
> > I get:
> >
> > https://paste.debian.net/hidden/a5ae1e53/
> >
> > It seems to me that subnet-id=1 is configured.  However when I run:
> >
> > curl -X POST -H "Content-Type: application/json" -d '{ "command":
> > "lease4-add","service": ["dhcp4"], "arguments": { "subnet-id": 1,
> > "ip-address": "172.31.32.12", "hw-address": "1a:1b:1c:1d:1e:1f" } }'
> > http://localhost:8000/
> > [ { "result": 1, "text": "Invalid subnet-id: No IPv4 subnet with
> > subnet-id=1 currently configured." } ]
> >
> > It says that subnet-id=1 doesn't exist?  What am I missing?
> >
> > --
> > Munroe Sollog
> > Senior Network Engineer
> > munroe at lehigh.edu <mailto:munroe at lehigh.edu>
> >
> >
> > _______________________________________________
> > Kea-users mailing list
> > Kea-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/kea-users
> >
>
>


-- 
Munroe Sollog
Senior Network Engineer
munroe at lehigh.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20171201/847b03c2/attachment.htm>


More information about the Kea-users mailing list