Mark Goddard eb8a42e911 Support configuration of controller ports for neutron ML2 generic switch driver
We use the switch interface configuration to provide a list of interfaces
to the neutron ML2 generic switch driver to be configured as trunk ports
in each neutron network. These interfaces correspond to the controllers
by default, which need access to all of the networks in order to provide
services such as DHCP and routing.

Related-Bug: #1690115
2017-05-11 19:09:43 +01:00

48 lines
1.4 KiB
Django/Jinja

# {{ ansible_managed }}
[ml2]
{% if kolla_neutron_ml2_mechanism_drivers %}
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 %}
[ml2_type_vlan]
{% if kolla_neutron_ml2_network_vlan_ranges %}
network_vlan_ranges = {% for vnr in kolla_neutron_ml2_network_vlan_ranges %}{{ vnr.physical_network }}{% if vnr.range is defined %}:{{ vnr.range }}{% endif %}{% if not loop.last %},{% endif %}{% endfor %}
{% endif %}
{% for switch in kolla_neutron_ml2_generic_switches %}
[genericswitch:{{ switch.name }}]
device_type = {{ switch.device_type }}
ip = {{ switch.ip }}
username = {{ switch.username }}
{% if switch.password is defined %}
password = {{ switch.password }}
{% endif %}
{% if switch.key_file is defined %}
key_file = {{ switch.key_file }}
{% endif %}
{% if switch.secret is defined %}
secret = {{ switch.secret }}
{% endif %}
{% if switch.ngs_trunk_ports is defined %}
ngs_trunk_ports = {{ switch.ngs_trunk_ports }}
{% endif %}
{% endfor %}
{% if kolla_extra_neutron_ml2 %}
#######################
# Extra configuration
#######################
{{ kolla_extra_neutron_ml2 }}
{% endif %}