Skip to content

Commit

Permalink
Move two neutron options from custom neutron.conf to globals.yml
Browse files Browse the repository at this point in the history
Support was added in kolla-ansible for neutron_type_drivers and
neutron_tenant_network_types.
  • Loading branch information
markgoddard committed Sep 18, 2017
1 parent f008b6a commit a8f95c9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/kolla-ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ kolla_provision_interface:
# Interface on which the inspector dnsmasq service listens.
kolla_inspector_dnsmasq_interface:

# List of Neutron ML2 type drivers to use.
kolla_neutron_ml2_type_drivers: []

# List of Neutron ML2 tenant network types to use.
kolla_neutron_ml2_tenant_network_types: []

####################
# TLS options
####################
Expand Down
11 changes: 11 additions & 0 deletions ansible/roles/kolla-ansible/templates/globals.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ ironic_dnsmasq_interface: "{{ kolla_inspector_dnsmasq_interface }}"
# Valid options are [ openvswitch, linuxbridge ]
neutron_plugin_agent: "openvswitch"

# Comma-separated names of neutron ML2 type drivers.
{% if kolla_neutron_ml2_type_drivers %}
neutron_type_drivers: {{ kolla_neutron_ml2_type_drivers | join(',') }}
{% endif %}

# Comma-separated types of tenant networks (should be listed in 'neutron_type_drivers')
# NOTE: for ironic this list should also contain 'flat'
{% if kolla_neutron_ml2_tenant_network_types %}
neutron_tenant_network_types: {{ kolla_neutron_ml2_tenant_network_types | join(',') }}
{% endif %}


####################
# keepalived options
Expand Down
6 changes: 0 additions & 6 deletions ansible/roles/kolla-openstack/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,6 @@ kolla_enable_neutron:
# List of Neutron ML2 mechanism drivers to use.
kolla_neutron_ml2_mechanism_drivers: []

# List of Neutron ML2 type drivers to use.
kolla_neutron_ml2_type_drivers: []

# List of Neutron ML2 tenant network types to use.
kolla_neutron_ml2_tenant_network_types: []

# List of Neutron ML2 network VLAN ranges to use. Each item should be a dict
# containing the following items:
# physical_network: The physical network
Expand Down
8 changes: 0 additions & 8 deletions ansible/roles/kolla-openstack/templates/ml2_conf.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
mechanism_drivers = {{ kolla_neutron_ml2_mechanism_drivers | join(',') }}
{% endif %}

{% if kolla_neutron_ml2_type_drivers %}
type_drivers = {{ kolla_neutron_ml2_type_drivers | join(',') }}
{% endif %}

{% if kolla_neutron_ml2_tenant_network_types %}
tenant_network_types = {{ kolla_neutron_ml2_tenant_network_types | join(',') }}
{% endif %}

{% if kolla_neutron_ml2_extension_drivers %}
extension_drivers = {{ kolla_neutron_ml2_extension_drivers | join(',') }}
{% endif %}
Expand Down

0 comments on commit a8f95c9

Please sign in to comment.