autohelp: add a neutron hook
Import and call some plugins methods to bring back their options. Change-Id: Ie1ef9556b2b54a2f3b6dfe251a430ae8438233bc
This commit is contained in:
parent
b2ceef6cd6
commit
b2b72bd32b
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue