<div dir="ltr">Thanks Francis! This is excellent! I was going to play with this over the weekend, now I have lots of things to play with!<div><br></div><div>Cheers and have a great weekend!</div><div>Jason</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 1:12 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="">Jason Guy writes:<br>
> > => there is a documentation somewhere but I don't remember where it is...<br>
> > I am afraid it is only for one of the 2 SQL backends but it works in fact<br>
> > for both (Cassandra is another thing and this afternoon it did not support<br>
> > host reservation :-).<br>
><br>
> I currently have mysql, but if postgres is required for this, I would<br>
> switch backends<br>
> if necessary, since I am currently planning to redeploy the services in the<br>
> network.<br>
> I will read the docs again and see what I can find.<br>
<br>
</span>=> I believed someone would add a pointer to the doc in the list...<br>
There are not enough difference between MySQL and PostgreSQL to require<br>
a switch. IMHO if you know only one you should keep it...<br>
<br>
Ah! Got it: <a href="http://kea.isc.org/wiki/HostReservationsHowTo" rel="noreferrer" target="_blank">http://kea.isc.org/wiki/<wbr>HostReservationsHowTo</a><br>
(and it is for both! Perhaps not very up-to-date but you are not running<br>
the very last code too, in particulaer in production :-).<br>
<span class=""><br>
> This does makes sense. I was not sure what exactly is entered in the column<br>
> for a given<br>
> host reservation. I assumed it was just a class name defined globally or<br>
> under the<br>
> subnet. For the other fieldsĀ  (next_server, hostname, or boot_file_name), I<br>
> would<br>
> expect to simply enter the option data expected (ipv4 address or ascii<br>
> string).<br>
<br>
</span>=> yes, there is a minimal encoding between JSON and database representation.<br>
I can look at the code if you'd like...<br>
classes: <class1>,<class2>,... without a space after comma<br>
hostname: <hostname> i.e. the string as it<br>
next_server: <int> or NULL (same than the ip-address)<br>
dhcp4_server_hostname and dhcp4_boot_file_name: strings<br>
<br>
You have some constraints in length so I recommend to read the schema<br>
(SQL is supposed to be user friendly and you have "shells" to play with).<br>
<br>
Regards<br>
<br>
Francis Dupont <<a href="mailto:fdupont@isc.org">fdupont@isc.org</a>><br>
</blockquote></div><br></div>