<div dir="ltr">Thanks Francis</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 21, 2017 at 2:20 PM, Francis Dupont <span dir="ltr"><<a href="mailto:fdupont@isc.org" target="_blank">fdupont@isc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Gokulakrishnan Gopalakrishnan writes:<br>
> I'm exploring Kea hooks for assigning Subnets. In subnet4_select(...) we<br>
> can select a subnet among the existing list of subnets. I'm just curious<br>
> whether we can select a custom subnet which is not defined at Kea.conf file?<br>
> Eg:<br>
> Kea.conf has 2 subnets defined - <a href="http://192.168.1.0/24" rel="noreferrer" target="_blank">192.168.1.0/24</a>, <a href="http://192.168.2.0/24" rel="noreferrer" target="_blank">192.168.2.0/24</a><br>
> In subnet4_select(...) can we assign subnet of <a href="http://192.168.3.0/24" rel="noreferrer" target="_blank">192.168.3.0/24</a> and<br>
> subsequently assign IP of 192.168.3.10 to that host?<br>
<br>
</span>=> you can't assign a value which does not exist. Now you have access<br>
to everything from a hook so you can create a subnet object and assign<br>
it, at least in theory (i.e. this hook code should be a bit hard to write).<br>
<br>
Regards<br>
<br>
Francis Dupont <<a href="mailto:fdupont@isc.org">fdupont@isc.org</a>><br>
</blockquote></div><br></div>