pykeadhcp
pykeadhcp copied to clipboard
Logger output_options not correctly formatted in Kea API
Python version
3.10
How to reproduce this locally
- Setup Kea Class
- Add logger to "loggers" global config for any daemon
- Export to JSON
What should happen?
output-options for Logger should be saved once config is set using config-set API command
What happened?
output-options is not saved on API because Kea API is expecting underscores (output_options)
Raised bug with vendor (https://gitlab.isc.org/isc-projects/kea/-/issues/2904)
Also will implement workaround for now until fixed for the Logger model to prevent being converted to a hyphen:
class Config:
fields = {"output_options": "output_options"}
Should be fixed in 2.5.0