<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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="moz-cite-prefix">On 12/04/2022 06:29, s k wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:YT2PR01MB627253E32CED9BA13EA76833A8ED9@YT2PR01MB6272.CANPRD01.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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="moz-mime-attachment-header"></fieldset>
    </blockquote>
  </body>
</html>