I am using store_config = file to for static IP address assignments. After upgrading to Debian Bullseye which also upgraded dhcpy6d, dhcpy6d crashes directly after start:
felix.mein-iserv.de ~ # /usr/sbin/dhcpy6d --config /etc/dhcpy6d.conf
Configuration database is not connected!
It seems that this issues is related to the fact that the specified store_file_config is empty a ka without any sections:
I would expect this to be a legal configuration, as the clients.conf in my case is written from an external database and there are currently no fixed addresses to assign.
Hi,
I am using
store_config = file
to for static IP address assignments. After upgrading to Debian Bullseye which also upgraded dhcpy6d, dhcpy6d crashes directly after start:It seems that this issues is related to the fact that the specified
store_file_config
is empty a ka without any sections:I would expect this to be a legal configuration, as the
clients.conf
in my case is written from an external database and there are currently no fixed addresses to assign.I guess that the only issue is, that
self.connected = True
is placed inside thefor
loop: https://github.com/HenriWahl/dhcpy6d/blob/28216575367aab22deb8477cb4b2ddeb1a21b59e/dhcpy6d/storage/textfile.py#L117. If I am correct, the issue can be fixed by moving the statement behind thefor
loop. It was a few years ago since I worked the dhcpy6d source code, so I am not sure if this would cause problems. If not, I would create a PR.Thank you for your time.
Regards, Felix