<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>the reservation-add command will accomplish what you need.
However, it's important to note that if you're utilizing a JSON
configuration backend, you must use the config-write command to
save any reservations added via the reservation-add command.
Failing to do so will result in the loss of those reservations
upon restarting Kea. If you're using a database to store host
reservations, there is no need to use the config-write command.<br>
<br>
ARM:
<a class="moz-txt-link-freetext" href="https://kea.readthedocs.io/en/latest/arm/hooks.html#libdhcp-host-cmds-so-host-commands">https://kea.readthedocs.io/en/latest/arm/hooks.html#libdhcp-host-cmds-so-host-commands</a><br>
<br>
Regards,</p>
<p>Wlodek Wencel</p>
<p>QA, ISC<br>
</p>
<div class="moz-cite-prefix">On 05/03/2024 12:51, Andrew Mulheirn
via Kea-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:PR3P195MB10716568B2C15272E1051DBFFA222@PR3P195MB1071.EURP195.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}@font-face
{font-family:Aptos;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:x_msonormal;
margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi
Veronique – <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thanks
very much! I have since discovered that I can use
'reservation-add' instead, which achieves what I need. That
seems to be additive for host reservations.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><br>
<br>
Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Andy<o:p></o:p></span></p>
<div
style="font-size: 9pt; font-family: Verdana; line-height: 1.2">
<div>
<p
style="color: rgb(14, 65, 69); font-weight: bold; margin: 0;"><br>
Andrew Mulheirn </p>
<p style="color: #727272; margin: 0;"> Senior Network
Architect </p>
<p style="margin: 0;"> <span style="color: #d4966a"> M: </span>
<a href="tel:+44 (0) 74 3654 8126"
style="text-decoration: none;" moz-do-not-send="true">
+44 (0) 74 3654 8126 </a> </p>
<p style="margin: 0;"> <span style="color: #d4966a"> E: </span>
<a href="mailto:andrew.mulheirn@vorboss.com"
style="text-decoration: none;" moz-do-not-send="true"
class="moz-txt-link-freetext">
andrew.mulheirn@vorboss.com </a> </p>
<p style="margin: 0;"> <a style="text-decoration: none;"
href="https://vorboss.com" title=""
moz-do-not-send="true"> vorboss.com </a> </p>
</div>
<br>
<div>
<p style="margin: 0;"> <span
style="color: rgb(114, 114, 114);"> Not sure who
currently provides your internet? </span> <br>
<a href="https://check.vorboss.com/"
style="text-decoration: none;" moz-do-not-send="true">
Find out here and take our speed test. </a> </p>
</div>
<br>
<div style="font-size: 8pt; color: #9a9a9a;">
<p style="margin: 0;"> Disclaimer: This message is private
and confidential. If you have received this message in
error, please remove it from your system and notify us at<span
style="color: rgb(154, 154, 154);"> </span><a
href="mailto:sysadmin@vorboss.net"
style="text-decoration: none;" moz-do-not-send="true"><span
style="color: rgb(154, 154, 154);">
sysadmin@vorboss.net
</span> </a> or by telephone <span
style="color: rgb(154, 154, 154);">+44(0)20 3582 8500</span>.
Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient
is prohibited. Privacy Note: Vorboss Limited may monitor
email traffic data and also the content of email for the
purposes of security. This email does not create or vary
any contractual obligations between Vorboss Limited and
the intended recipient. </p>
<p> Vorboss Limited is a limited company registered in
England and Wales. Registered number: 05678571. Registered
Office: Vorboss Limited, Broadwalk House, 5 Appold Street,
London, EC2A 2AG, UNITED KINGDOM. </p>
</div>
</div>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span
lang="EN-US"> Veronique Lefebure
<a class="moz-txt-link-rfc2396E" href="mailto:Veronique.Lefebure@cern.ch"><Veronique.Lefebure@cern.ch></a>
<br>
<b>Sent:</b> Tuesday, March 5, 2024 9:49 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:kea-users@lists.isc.org">kea-users@lists.isc.org</a><br>
<b>Cc:</b> Andrew Mulheirn
<a class="moz-txt-link-rfc2396E" href="mailto:andrew.mulheirn@vorboss.com"><andrew.mulheirn@vorboss.com></a><br>
<b>Subject:</b> Re: Problem using 'config-set' in API<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">config-set
will rewrite the whole config file. You cannot "append" a
configuration bit. To do so you need to use the API.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">Cheers,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">V.<o:p></o:p></span></p>
</div>
<div class="MsoNormal" style="text-align:center" align="center">
<hr width="98%" size="2" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span
style="color:black"> Kea-users <<a
href="mailto:kea-users-bounces@lists.isc.org"
moz-do-not-send="true" class="moz-txt-link-freetext">kea-users-bounces@lists.isc.org</a>>
on behalf of Andrew Mulheirn via Kea-users <<a
href="mailto:kea-users@lists.isc.org"
moz-do-not-send="true" class="moz-txt-link-freetext">kea-users@lists.isc.org</a>><br>
<b>Sent:</b> Tuesday, March 5, 2024 10:06 AM<br>
<b>To:</b> <a href="mailto:kea-users@lists.isc.org"
moz-do-not-send="true" class="moz-txt-link-freetext">kea-users@lists.isc.org</a>
<<a href="mailto:kea-users@lists.isc.org"
moz-do-not-send="true" class="moz-txt-link-freetext">kea-users@lists.isc.org</a>><br>
<b>Cc:</b> Andrew Mulheirn <<a
href="mailto:andrew.mulheirn@vorboss.com"
moz-do-not-send="true" class="moz-txt-link-freetext">andrew.mulheirn@vorboss.com</a>><br>
<b>Subject:</b> [Kea-users] Problem using 'config-set' in
API</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal">Hi,<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">I am trying to use the API and reading
it seems to work fine. However, when I write to it using
a config-set action, it seems to stop working until I
restart the service. Here is an example of what I am
sending in the API call. I am trying to add an IP
address reservation for a device connected on a particular
switch port (using option 18):<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">{</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"command"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#CE9178">"config-set"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">,</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"service"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">[</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#CE9178">"dhcp6"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">],</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"arguments"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">{</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"Dhcp6"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">{</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"subnet6"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">[</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">{</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"subnet"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#CE9178">"2a00:e300:1102::/64"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">,</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"reservations"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">[</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">{</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"flex-id"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#CE9178">"'xe-0/0/4:rsw001'"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">,</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#9CDCFE">"ip-addresses"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">:</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">[</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#CE9178">"2a00:e300:1102::8"</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">]</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">}</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">]</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">}</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">]</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">}</span><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:#F8F8F2">
</span><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">}</span><o:p></o:p></p>
<p class="xmsonormal"
style="line-height:13.5pt;background:#212121"><span
style="font-size:9.0pt;font-family:"Courier New";color:gainsboro">}</span><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Perhaps I have misread the
documentation – do I need to be sending the entire config
in the config-set command? Or can I add IP address
reservations in an additive way like I am trying to do
here?<br>
<br>
Any help appreciated,<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<p class="xmsonormal">Kind regards,<o:p></o:p></p>
<p class="xmsonormal">Andy<o:p></o:p></p>
</div>
<div>
<div>
<p><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#0E4145"><br>
Andrew Mulheirn <o:p></o:p></span></b></p>
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#727272">Senior
Network Architect
<o:p></o:p></span></p>
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#D4966A">M:
</span><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><a
href="tel:+44%20(0)%2074%203654%208126"
moz-do-not-send="true"><span
style="text-decoration:none">+44 (0) 74 3654 8126
</span></a><o:p></o:p></span></p>
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#D4966A">E:
</span><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><a
href="mailto:andrew.mulheirn@vorboss.com"
moz-do-not-send="true"><span
style="text-decoration:none">andrew.mulheirn@vorboss.com
</span></a><o:p></o:p></span></p>
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><a
href="https://vorboss.com" moz-do-not-send="true"><span
style="text-decoration:none">vorboss.com
</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<div>
<p><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#727272">Not
sure who currently provides your internet?
</span><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><br>
<a href="https://check.vorboss.com/"
moz-do-not-send="true"><span
style="text-decoration:none">Find out here and
take our speed test.
</span></a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif"><o:p> </o:p></span></p>
<div>
<p><span
style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#9A9A9A">Disclaimer:
This message is private and confidential. If you have
received this message in error, please remove it from
your system and notify us at
<a href="mailto:sysadmin@vorboss.net"
moz-do-not-send="true"><span
style="color:#9A9A9A;text-decoration:none">sysadmin@vorboss.net
</span></a>or by telephone +44(0)20 3582 8500. Any
review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this
information by persons or entities other than the
intended recipient is prohibited. Privacy Note:
Vorboss Limited may monitor email traffic data and
also the content of email for the purposes of
security. This email does not create or vary any
contractual obligations between Vorboss Limited and
the intended recipient.
<o:p></o:p></span></p>
<p><span
style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#9A9A9A">Vorboss
Limited is a limited company registered in England and
Wales. Registered number: 05678571. Registered Office:
Vorboss Limited, Broadwalk House, 5 Appold Street,
London, EC2A 2AG, UNITED KINGDOM. <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>