<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 1/18/17 11:02 AM, Olivier Français
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1484755312.11313.30.camel@desk615432.desk.int.gns.ovh.net"
      type="cite">
      <pre wrap="">That's exactly what we want to do :)
We can dev a tool/script to translate ISC DHCP lease database into kea
one.

But, is it a problem for kea to add leases in the database ?
Kea has to be stopped for that ?

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
    </blockquote>
    <p><tt>Hello Olivier:</tt></p>
    <p><tt><br>
        Whether or not it is a problem depends largely on which lease
        backend you are using. If you are using the default, Memfile,
        you would need to stop the Kea first.  Two reasons: first Kea
        would be unaware of leases added to the end of the lease file so
        there would be nothing to prevent it from handing out these
        leases.  Memfile uses the lease file as a journal but it tracks
        leases in memory.  The files are only ever loaded upon startup
        and reconfigure. Second: you might attempt a write to the file
        at the same time as Kea and this might corrupt entries in the
        file.</tt></p>
    <p><tt>If you are using MySQL, PostgreSQL, or Cassandra you should
        be able to insert leases while Kea as it uses the DB to track
        leases. You would run at least some risk of colliding with a
        lease that Kea is attempting to hand out at the same time you
        insert it.</tt></p>
    <p><tt>Thomas Markwalder</tt></p>
    <p><tt>ISC Software Engineering</tt></p>
  </body>
</html>