“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@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@lists.isc.org<mailto:Kea-users@lists.isc.org>
https://lists.isc.org/mailman/listinfo/kea-users

-- 
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@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to