[Kea-users] config-hash-get – uses full config to hash?
tachibanashita at outlook.com
tachibanashita at outlook.com
Tue May 13 00:42:21 UTC 2025
“Using the same config that I have loaded in the server” do you mean the config file in /etc/kea? If so, can you use the write-config API to get the configuration in memory and compare it again?
On May 12, 2025, at 2:43 AM, Diogo André de Assumpção via Kea-users <kea-users at lists.isc.org> wrote:
Hi all,
I was exploring using the `config-hash-get` command to get a hash of the loaded config and then compare with a candidate config to see if anything was change before loading.
Using the same config that I have loaded in the server, I couldn’t get a hash that matched the one we get via the `config-hash-get` command.
Is that something in the way I’m generating the hash? I’m passing the entire dhcp4 config (ie. {"Dhcp4":…}) to the hash function.
I also noticed that if I do a `config-get` command, the output will contain every optional field that is usually not present in a manually generated config. Could that be the reason why the hashes don’t match?
Thanks,
– Diogo
--
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
Kea-users at lists.isc.org<mailto:Kea-users at lists.isc.org>
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250513/de887b1b/attachment.htm>
More information about the Kea-users
mailing list