Skip to content

Commit

Permalink
Merge "Allow only vxlan networks to be created in Neutron."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 3, 2017
2 parents 3b39c58 + 46a22cc commit a5357ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/neutron.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ agent_down_time = {{ neutron_agent_down_time }}
l3_ha = True
l3_ha_net_cidr = {{ neutron_l3_ha_net_cidr }}
max_l3_agents_per_router = {{ max_l3_router }}
{% if neutron_provider_networks.network_mappings_list is defined %}
{% if neutron_provider_networks.network_mappings_list is defined and ((neutron_provider_networks.network_mappings_list | length) > 0) %}
ha_network_type = {{ neutron_provider_networks.network_mappings_list[0].split(':')[0] }}
ha_network_physical_name = {{ neutron_provider_networks.network_mappings_list[0].split(':')[-1] }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion templates/plugins/ml2/linuxbridge_agent.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Linux bridge agent physical interface mappings
[linux_bridge]

{% if neutron_provider_networks.network_mappings is defined %}
{% if neutron_provider_networks.network_mappings is defined and ((neutron_provider_networks.network_mappings | length) > 0) %}
physical_interface_mappings = {{ neutron_provider_networks.network_mappings }}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion templates/plugins/ml2/openvswitch_agent.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% if neutron_tunnel_types | length > 0 %}
local_ip = {{ neutron_local_ip }}
{% endif %}
{% if neutron_provider_networks.network_mappings is defined %}
{% if neutron_provider_networks.network_mappings is defined and ((neutron_provider_networks.network_mappings | length) > 0) %}
bridge_mappings = {{ neutron_provider_networks.network_mappings }}
{% endif %}

Expand Down

0 comments on commit a5357ec

Please # to comment.