Merge "Fix neutron issue w/ l2pop"
This commit is contained in:
commit
bdaad5d29e
@ -245,6 +245,9 @@ neutron_dhcp_config:
|
|||||||
neutron_ml2_drivers_type: "flat,vlan,vxlan,local"
|
neutron_ml2_drivers_type: "flat,vlan,vxlan,local"
|
||||||
neutron_ml2_mechanism_drivers: "linuxbridge,l2population"
|
neutron_ml2_mechanism_drivers: "linuxbridge,l2population"
|
||||||
|
|
||||||
|
# Enable or disable L2 Population.
|
||||||
|
neutron_l2_population: "False"
|
||||||
|
|
||||||
## Set this to configure overlay networks. The default is set as an empty hash.
|
## Set this to configure overlay networks. The default is set as an empty hash.
|
||||||
# neutron_overlay_network:
|
# neutron_overlay_network:
|
||||||
# address: "172.29.241.248"
|
# address: "172.29.241.248"
|
||||||
@ -257,7 +260,7 @@ neutron_overlay_network: {}
|
|||||||
## The neutron multicast group address. This should be set as a host variable if used.
|
## The neutron multicast group address. This should be set as a host variable if used.
|
||||||
## This defaults to an empty string
|
## This defaults to an empty string
|
||||||
# neutron_vxlan_group: 239.1.1.100
|
# neutron_vxlan_group: 239.1.1.100
|
||||||
neutron_vxlan_group: ""
|
neutron_vxlan_group: "239.1.1.1"
|
||||||
|
|
||||||
## Set this variable to configure the provider networks that will be available
|
## Set this variable to configure the provider networks that will be available
|
||||||
## When setting up networking in things like the ml2_conf.ini file. Normally
|
## When setting up networking in things like the ml2_conf.ini file. Normally
|
||||||
|
@ -13,26 +13,6 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Disable L2 population for L3HA support
|
|
||||||
set_fact:
|
|
||||||
neutron_l2_population: "False"
|
|
||||||
when:
|
|
||||||
- neutron_plugin_type == 'ml2'
|
|
||||||
- groups['neutron_agent'] | length >= 2
|
|
||||||
- neutron_services['neutron-linuxbridge-agent']['service_en'] | bool
|
|
||||||
- neutron_l2_population is undefined
|
|
||||||
tags:
|
|
||||||
- neutron-config
|
|
||||||
|
|
||||||
- name: Enable L2 population support
|
|
||||||
set_fact:
|
|
||||||
neutron_l2_population: "True"
|
|
||||||
when:
|
|
||||||
- neutron_plugin_type == 'ml2'
|
|
||||||
- neutron_l2_population is undefined
|
|
||||||
tags:
|
|
||||||
- neutron-config
|
|
||||||
|
|
||||||
- name: Copy neutron config
|
- name: Copy neutron config
|
||||||
config_template:
|
config_template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
|
@ -50,7 +50,7 @@ agent_down_time = {{ neutron_agent_down_time }}
|
|||||||
|
|
||||||
{% set num_agent = groups['neutron_agent'] | length %}
|
{% set num_agent = groups['neutron_agent'] | length %}
|
||||||
{% if neutron_plugin_type == 'ml2' and num_agent >= 2 %}
|
{% if neutron_plugin_type == 'ml2' and num_agent >= 2 %}
|
||||||
{% if neutron_services['neutron-linuxbridge-agent']['service_en'] | bool and not neutron_l2_population | bool %}
|
{% if neutron_services['neutron-linuxbridge-agent']['service_en'] | bool %}
|
||||||
|
|
||||||
{% set max_l3_router = num_agent if num_agent > 2 else 2 %}
|
{% set max_l3_router = num_agent if num_agent > 2 else 2 %}
|
||||||
{% set min_l3_router = num_agent if (num_agent > 2 and num_agent < max_l3_router) else 2 %}
|
{% set min_l3_router = num_agent if (num_agent > 2 and num_agent < max_l3_router) else 2 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user