diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst index 097c200e..cbc0184d 100644 --- a/RELEASE_NOTES.rst +++ b/RELEASE_NOTES.rst @@ -7,6 +7,7 @@ Release notes * Enhance ``doc-tools-check-languages`` to handle translation of RST guides and publishing of draft guides to /draft/. * ``autohelp.py``: lookup configuration options in more oslo libraries. +* ``autohelp.py``: add a hook for neutron plugins * ``autohelp-wrapper``: improve reliability by building a virtual env per project, rather than a common virtual env. * ``autohelp-wrapper``: define the custom dependencies for each project in diff --git a/autogenerate_config_docs/hooks.py b/autogenerate_config_docs/hooks.py index e9d62bb0..79437b39 100644 --- a/autogenerate_config_docs/hooks.py +++ b/autogenerate_config_docs/hooks.py @@ -35,6 +35,19 @@ def glance_store_config(): pass +def neutron_misc(): + import bsnstacklib.plugins.bigswitch.config + import networking_cisco.plugins.cisco.cfg_agent.device_status # noqa + import networking_l2gw.services.l2gateway.common.config as l2gw + import networking_vsphere.common.config + from oslo.config import cfg + + bsnstacklib.plugins.bigswitch.config.register_config() + networking_vsphere.common.config.register_options() + l2gw.register_l2gw_opts_helper() + l2gw.register_ovsdb_opts_helper(cfg.CONF) + + def nova_spice(): import os # nova.cmd.__init__ before kilo requires to be imported before eventlet is. @@ -46,4 +59,5 @@ def nova_spice(): HOOKS = {'keystone.common.config': keystone_config, 'glance.common.config': glance_store_config, + 'neutron': neutron_misc, 'nova.spice': nova_spice}