<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
config-set will rewrite the whole config file. You cannot "append" a configuration bit. To do so you need to use the API.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
V.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Andrew Mulheirn via Kea-users <kea-users@lists.isc.org><br>
<b>Sent:</b> Tuesday, March 5, 2024 10:06 AM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Cc:</b> Andrew Mulheirn <andrew.mulheirn@vorboss.com><br>
<b>Subject:</b> [Kea-users] Problem using 'config-set' in API</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.x_EmailStyle17
{font-family:"Calibri",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-family:"Calibri",sans-serif}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">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):</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal" style="line-height:13.5pt; background:#212121"><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></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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><span style="font-size:9.0pt; font-family:"Courier New"; color:#F8F8F2"></span></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" 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></p>
<p class="x_MsoNormal" style="line-height:13.5pt; background:#212121"><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></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">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,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Kind regards,</p>
<p class="x_MsoNormal">Andy</p>
</div>
<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">+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">andrew.mulheirn@vorboss.com
</a></p>
<p style="margin:0"><a href="https://vorboss.com" title="" style="text-decoration:none">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">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"><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>
</body>
</html>