Automatically enable neutron ha router capabilities

This change will automatically set the variable `horizon_enable_ha_router` to
True if the neutron plugin type is ML2 and the environment has >=2 l3 agent
nodes. This will provide extra functionality in horizon to manage HA routers.

Change-Id: I73c48163927673900befd4dbce631d0ee79994e5
Depends-On: I5edb7576d977bc558d9411dca62a029eb1856000
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-05-05 11:11:35 -05:00
parent 62501c3806
commit 96443f586d
No known key found for this signature in database
GPG Key ID: 69FEFFC5E2D9273F
2 changed files with 8 additions and 0 deletions

View File

@ -176,6 +176,9 @@ neutron_service_in_ldap: "{{ service_ldap_backend_enabled }}"
neutron_rabbitmq_userid: neutron neutron_rabbitmq_userid: neutron
neutron_rabbitmq_vhost: /neutron neutron_rabbitmq_vhost: /neutron
# Neutron Plugins
neutron_plugin_type: ml2.lxb
## Glance ## Glance
glance_service_port: 9292 glance_service_port: 9292
@ -233,6 +236,7 @@ horizon_enable_cinder_backup: "{% if cinder_service_backup_program_enabled is de
horizon_enable_neutron_lbaas: "{% if neutron_plugin_base is defined and ('lbaas' in neutron_plugin_base or 'neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin' in neutron_plugin_base) %}True{% else %}False{% endif %}" horizon_enable_neutron_lbaas: "{% if neutron_plugin_base is defined and ('lbaas' in neutron_plugin_base or 'neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin' in neutron_plugin_base) %}True{% else %}False{% endif %}"
horizon_enable_neutron_fwaas: "{% if neutron_plugin_base is defined and 'firewall' in neutron_plugin_base %}True{% else %}False{% endif %}" horizon_enable_neutron_fwaas: "{% if neutron_plugin_base is defined and 'firewall' in neutron_plugin_base %}True{% else %}False{% endif %}"
horizon_enable_neutron_vpnaas: "{% if neutron_plugin_base is defined and 'vpnaas' in neutron_plugin_base %}True{% else %}False{% endif %}" horizon_enable_neutron_vpnaas: "{% if neutron_plugin_base is defined and 'vpnaas' in neutron_plugin_base %}True{% else %}False{% endif %}"
horizon_enable_ha_router: "{% if 'ml2' in neutron_plugin_type and (groups['neutron_l3_agent'] | length >= 2) %}True{% else %}False{% endif %}"
horizon_rabbitmq_userid: horizon horizon_rabbitmq_userid: horizon
horizon_rabbitmq_vhost: /horizon horizon_rabbitmq_vhost: /horizon

View File

@ -0,0 +1,4 @@
---
features:
- Neutron HA router capabilities in Horizon will be enabled automatically if
the neutron plugin type is ML2 and environment has >=2 L3 agent nodes.