Wencel

    Thanks for the quick reply . I just opened the .json file to check 
manually. I dont see the subnet under subnet6 section .

________________________________
From: Kea-users <[email protected]> on behalf of Wlodek Wencel 
<[email protected]>
Sent: Tuesday, April 12, 2022 4:15 AM
To: [email protected] <[email protected]>
Subject: Re: [Kea-users] Config-write hook is not writing all info


Hi,


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?

Thanks for using Kea,
Wlodek Wencel
QA Engineer,
ISC


On 12/04/2022 06:29, s k wrote:
Hi

  I tried following steps to add new subnet6 using subnet6-add Hook


  1.  Add subnet6-add command to add new subnet6 dynamically using control agent
  2.     Message says "[ { "arguments": { "subnets": [ { "id": 1, "subnet": 
"fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } 
] "

       2. To confirm added the same subnet again
               Message Says "[ { "result": 1, "text": "subnet with the prefix 
of 'fda4:110:0:10::8053:370/64' already exists" } ]"
       3. Now Try to write the config from memory to file using config_cmds hook

{
    "service": ["dhcp6"],
    "command": "config-write",
    "arguments": {
        "filename": "/tmp/config-modified-2022-04-11.json"
    }
}
Expectation is the newly added subnet should exists in the file 
"/tmp/config-modified-2022-04-11.json"  But it does not . am i missing any 
steps ?

    4. Now restart Kes-dhcp6 service
    5. Repeat step 1
         Message says  "[ { "arguments": { "subnets": [ { "id": 1, "subnet": 
"fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } 
] "
   Meaning the new subnet only exists only in memory.

How do i correct this ?



Thanks for all your help





  1.



-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to