Bugzilla – Bug 1213
Python module: support multiple instances
Last modified: 2018-05-02 11:09:41 CEST
Currently, it's not possible to use multiple instances of the python module. Actually, adding the word `python` to the `module-config:` option several times is not rejected by unbound. In the end, however, it's not a useable setup supported by unbound.
It happened to be quiet simple to prepare the python module for multiple instance support. @github I've prepared a feature branch proposing a possible solution. Please have a look at: https://github.com/episource/unbound/tree/dev/pythonmod-multi-instance/main
The proposed solution allows to reference the python module more than once within `module-config:` option. For each instance, a `python-script:` option needs to be added to the `python:` section, specifying the python script file to be used. The first python module picks up the first `python-script:` option, the second picks up the second script, and so on.
Diff url has changed. The diff against current master can be found here:
I've created a github pull request for this: https://github.com/NLnetLabs/unbound/pull/6
We are willing to merge your code to unbound's source.
Currently we are releasing 1.7.1, so this code after internal review will be headed for the next release (probably 1.7.2).
Thanks for the contribution!