[Kea-users] Custom Subnet in Hooks

Gokulakrishnan Gopalakrishnan ggopalakrishnan at salesforce.com
Wed Jun 21 08:51:37 UTC 2017


Thanks Francis

On Wed, Jun 21, 2017 at 2:20 PM, Francis Dupont <fdupont at isc.org> wrote:

> Gokulakrishnan Gopalakrishnan writes:
> > I'm exploring Kea hooks for assigning Subnets. In subnet4_select(...) we
> > can select a subnet among the existing list of subnets. I'm just curious
> > whether we can select a custom subnet which is not defined at Kea.conf
> file?
> > Eg:
> > Kea.conf has 2 subnets defined - 192.168.1.0/24, 192.168.2.0/24
> > In subnet4_select(...) can we assign subnet of 192.168.3.0/24 and
> > subsequently assign IP of 192.168.3.10 to that host?
>
> => you can't assign a value which does not exist. Now you have access
> to everything from a hook so you can create a subnet object and assign
> it, at least in theory (i.e. this hook code should be a bit hard to write).
>
> Regards
>
> Francis Dupont <fdupont at isc.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170621/a191ee7b/attachment.htm>


More information about the Kea-users mailing list