[Kea-users] Config-write hook is not writing all info
s k
sat98 at hotmail.com
Tue Apr 12 04:29:50 UTC 2022
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220412/70786bd1/attachment.htm>
More information about the Kea-users
mailing list