[neutron] Config extension plugin by names
- This patch configures plugins by names rather than python classes Change-Id: Ia7255738f52d347b91c2f8740ea82c2de2dc5fc1 Fixes: rhbz#1058221 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
ca7d4c3639
commit
24b33f0924
|
@ -495,24 +495,16 @@ def create_manifests(config, messages):
|
|||
|
||||
service_plugins = []
|
||||
if config['CONFIG_LBAAS_INSTALL'] == 'y':
|
||||
service_plugins.append(
|
||||
'neutron.services.loadbalancer.plugin.LoadBalancerPlugin'
|
||||
)
|
||||
service_plugins.append('lbaas')
|
||||
|
||||
# ML2 uses the L3 Router service plugin to implement l3 agent
|
||||
service_plugins.append(
|
||||
'neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'
|
||||
)
|
||||
service_plugins.append('router')
|
||||
|
||||
if config['CONFIG_NEUTRON_METERING_AGENT_INSTALL'] == 'y':
|
||||
service_plugins.append(
|
||||
'neutron.services.metering.metering_plugin.MeteringPlugin'
|
||||
)
|
||||
service_plugins.append('metering')
|
||||
|
||||
if config['CONFIG_NEUTRON_FWAAS'] == 'y':
|
||||
service_plugins.append(
|
||||
'neutron.services.firewall.fwaas_plugin.FirewallPlugin'
|
||||
)
|
||||
service_plugins.append('firewall')
|
||||
|
||||
config['SERVICE_PLUGINS'] = (service_plugins if service_plugins
|
||||
else 'undef')
|
||||
|
|
Loading…
Reference in New Issue