BSpendlove / pykeadhcp

A python module used to interact the the Kea DHCP API daemons (dhcp4, dhcp6, ctrl-agent and ddns)
Apache License 2.0
19 stars 4 forks source link

Support for config-hash-* (Kea v2.4.0+) #45

Open BSpendlove opened 1 year ago

BSpendlove commented 1 year ago

Daemon/Area

All Daemons

Feature/Enhancement you are proposing

https://kea.readthedocs.io/en/kea-2.4.0/arm/ctrl-channel.html#command-config-hash-get

"Starting with 2.4.0, also config-set and config-get return the SHA-256 hash of the new or current configuration. This may be used to later determine if a configuration has changed or not."

Reason for Feature/Enhancement

Breaks all daemon config_test/set tests because its not allowed to be sent with this commands, the local cached configuration for each daemon (typical variable naming is called cached_config) should strip out this hash or run through the local pydantic model and exclude this field

BSpendlove commented 1 year ago

Temp workaround for now while I work on the container test infrastructure (#29) for HA testing will be to remove "hash" in all tests...