<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Wlodek </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
     I am using version 2.1.1 . Could this be an version issue ? And also could you share the steps that you did to verify if i am missing anything ? </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
    Thanks for your help</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sk</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> s k <sat98@hotmail.com><br>
<b>Sent:</b> Tuesday, April 12, 2022 9:46 AM<br>
<b>To:</b> Wlodek Wencel <wlodek@isc.org>; Francis Dupont <fdupont@isc.org><br>
<b>Subject:</b> Re: [Kea-users] Config-write hook is not writing all info</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
+Francis also </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I did one more command , it shows those 2 subnets added dynamically after restart but not those static ones  from config file .</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
 I would like to see config write </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<img class="x_w-632 x_h-670" size="35933" style="max-width:100%" data-outlook-trace="F:2|T:2" src="cid:7e2c52b3-1774-4234-86e1-b879c2df0019"><br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> s k <sat98@hotmail.com><br>
<b>Sent:</b> Tuesday, April 12, 2022 9:35 AM<br>
<b>To:</b> Wlodek Wencel <wlodek@isc.org><br>
<b>Subject:</b> Re: [Kea-users] Config-write hook is not writing all info</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<img class="x_x_w-632 x_x_h-690" size="36706" style="max-width:100%" data-outlook-trace="F:3|T:3" src="cid:3caa11f3-07c6-454f-af73-116112981638"><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<img class="x_x_w-685 x_x_h-581" size="37255" style="max-width:100%" data-outlook-trace="F:3|T:3" src="cid:eb951d6e-73ca-4863-9576-880b23a11e77"><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
pls find the attached steps using postman . and also attached the Config write file . can you point me what am i missing ?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
sk</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of s k <sat98@hotmail.com><br>
<b>Sent:</b> Tuesday, April 12, 2022 6:16 AM<br>
<b>To:</b> Wlodek Wencel <wlodek@isc.org>; kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] Config-write hook is not writing all info</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Wencel </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
    Thanks for the quick reply . I just opened the .json file to check manually. I dont see the subnet under subnet6 section . </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_x_x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kea-users <kea-users-bounces@lists.isc.org> on behalf of Wlodek Wencel <wlodek@isc.org><br>
<b>Sent:</b> Tuesday, April 12, 2022 4:15 AM<br>
<b>To:</b> kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] Config-write hook is not writing all info</font>
<div> </div>
</div>
<div>
<p>Hi,</p>
<p><br>
</p>
<p>I just checked our system tests and looks like this feature is working. You are writing kea config file to /tmp/config-modified-2022-04-11.json when you restart kea are you pointing it to new config file location? or replacing old config file with a new
 one? Could you check content of /tmp/config-modified-2022-04-11.json?<br>
</p>
<p><br>
Thanks for using Kea, <br>
Wlodek Wencel <br>
QA Engineer, <br>
ISC <br>
</p>
<p><br>
</p>
<div class="x_x_x_x_moz-cite-prefix">On 12/04/2022 06:29, s k wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
  I tried following steps to add new subnet6 using subnet6-add Hook </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li><span>Add subnet6-add command to add new subnet6 dynamically using control agent </span></li><li style="display:block"><span>   Message says "[ { "arguments": { "subnets": [ { "id": 1, "subnet": "fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } ] "   </span></li></ol>
<div><span>       2. To confirm added the same subnet again </span></div>
<div><span>               Message Says "[ { "result": 1, "text": "subnet with the prefix of 'fda4:110:0:10::8053:370/64' already exists" } ]"  </span></div>
<div><span>       3. Now Try to write the config from memory to file using config_cmds hook </span></div>
<div><span>               
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span>{</span></span>
<div><span>    </span><span style="color:#a31515">"service"</span><span>: [</span><span style="color:#0451a5">"dhcp6"</span><span>], </span></div>
<div><span>    </span><span style="color:#a31515">"command"</span><span>: </span><span style="color:#0451a5">"config-write"</span><span>,</span></div>
<div><span>    </span><span style="color:#a31515">"arguments"</span><span>: {</span></div>
<div><span>        </span><span style="color:#a31515">"filename"</span><span>: </span><span style="color:#0451a5">"/tmp/config-modified-2022-04-11.json"</span></div>
<div><span>    }</span></div>
<span><span>}</span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span style="background-color:rgb(255,0,0)">Expectation is the newly added subnet should exists in the file </span><span><span style="color:rgb(4,81,165); background-color:rgb(255,0,0); display:inline!important">"/tmp/config-modified-2022-04-11.json" 
 But it does not . am i missing any steps ?</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><br>
</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important">    4. Now restart Kes-dhcp6 service </span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important">    5. Repeat step 1  </span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important">         Message says <span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:16px; text-align:left; background-color:rgb(255,255,255); display:inline!important"><span> </span>"[
 { "arguments": { "subnets": [ { "id": 1, "subnet": "fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } ] " <span> </span></span></span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:16px; text-align:left; background-color:rgb(255,255,255); display:inline!important"><span> 
  Meaning the new subnet only exists only in memory.</span></span></span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:16px; text-align:left; background-color:rgb(255,255,255); display:inline!important"><span><br>
</span></span></span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:16px; text-align:left; background-color:rgb(255,255,255); display:inline!important"><span>How
 do i correct this ?</span></span></span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:16px; text-align:left; background-color:rgb(255,255,255); display:inline!important"><span><br>
</span></span></span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><br>
</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><br>
</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important">Thanks for all your help</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><br>
</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><span style="color:rgb(4,81,165); background-color:rgb(255,255,254); display:inline!important"><br>
</span></span></span></div>
<div style="color:#000000; background-color:#fffffe; font-family:Consolas,'Courier New',monospace; font-weight:normal; font-size:12px; line-height:18px">
<span><span><br>
</span></span></div>
</span></div>
<div><span><br>
</span></div>
<ol start="2">
<li style="display:block"><span><br>
</span></li></ol>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<br>
<fieldset class="x_x_x_x_moz-mime-attachment-header"></fieldset> </blockquote>
</div>
</div>
</div>
</div>
</body>
</html>