72d5dfbf48
The plugin implementations need to be isolated from the entity that is using os-vif. Plugins should be allowed to define their own custom config parameters, without needing the user of os-vif to pass further options into the os_vif.initialize() method. This change introduces a CONFIG_OPTS attribute on the Plugin class. This provides a list of oslo_config options that are to be used by the plugin. os_vif will register these options into a group 'os_vif_$PLUGIN' eg 'os_vif_linux_bridge'. This gives the plugin impls the ability to have config options in the main project conf (ie /etc/nova/nova.conf) without exposing them directly to all of nova's own config options. Change-Id: I9634b474cd0d3fda09aef5800020c9415c28e3d8 |
||
---|---|---|
.. | ||
objects | ||
tests | ||
__init__.py | ||
exception.py | ||
i18n.py | ||
plugin.py |