[Kea-users] Config-write hook is not writing all info

Wlodek Wencel wlodek at isc.org
Tue Apr 12 08:15:48 UTC 2022


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
>
>
>
>
> 2.
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220412/1bb763e8/attachment-0001.htm>


More information about the Kea-users mailing list