
Neutron-sfc-agent start its functions with openvswitch. This change moves sfc configuration into neutron-openvswitch-agent. Rework config files to use openvswitch when sfc or openvswitch are used as network plugin. Also adds sfc extension_driver to ml2 Change-Id: If1ebf9554f6d686cc6d064e698a48f8a6b6172b3 Closes-Bug: #1664493 Depends-On: I60ba1333231a4ae38a041d41e551f7d74fe15e3b
88 lines
2.6 KiB
Django/Jinja
88 lines
2.6 KiB
Django/Jinja
# ml2_conf.ini
|
|
[ml2]
|
|
# Changing type_drivers after bootstrap can lead to database inconsistencies
|
|
type_drivers = {{ neutron_type_drivers }}
|
|
tenant_network_types = {{ neutron_tenant_network_types }}
|
|
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
{% if enable_hyperv | bool %}
|
|
mechanism_drivers = openvswitch,hyperv
|
|
{% else %}
|
|
mechanism_drivers = openvswitch,l2population
|
|
{% endif %}
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
mechanism_drivers = linuxbridge,l2population
|
|
{% endif %}
|
|
|
|
{% if neutron_extension_drivers %}
|
|
extension_drivers = {{ neutron_extension_drivers|map(attribute='name')|join(',') }}
|
|
{% elif enable_hyperv | bool %}
|
|
extension_drivers = port_security
|
|
{% endif %}
|
|
|
|
[ml2_type_vlan]
|
|
{% if enable_ironic | bool %}
|
|
network_vlan_ranges = physnet1
|
|
{% else %}
|
|
network_vlan_ranges =
|
|
{% endif %}
|
|
|
|
[ml2_type_flat]
|
|
{% if enable_ironic | bool %}
|
|
flat_networks = *
|
|
{% else %}
|
|
flat_networks = {% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}{% if not loop.last %},{% endif %}{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if not enable_hyperv | bool %}
|
|
[ml2_type_vxlan]
|
|
vni_ranges = 1:1000
|
|
vxlan_group = 239.1.1.1
|
|
{% endif %}
|
|
|
|
[securitygroup]
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
|
|
{% endif %}
|
|
|
|
{% if neutron_plugin_agent == "openvswitch" %}
|
|
{% if not enable_hyperv | bool %}
|
|
[agent]
|
|
tunnel_types = vxlan
|
|
l2_population = true
|
|
arp_responder = true
|
|
{% endif %}
|
|
|
|
{% if enable_neutron_dvr | bool %}
|
|
enable_distributed_routing = True
|
|
{% endif %}
|
|
|
|
{% if neutron_agent_extensions %}
|
|
extensions = {{ neutron_agent_extensions|map(attribute='name')|join(',') }}
|
|
{% endif %}
|
|
|
|
[ovs]
|
|
{% if inventory_hostname in groups["network"] or (inventory_hostname in groups["compute"] and computes_need_external_bridge ) %}
|
|
bridge_mappings = {% for bridge in neutron_bridge_name.split(',') %}physnet{{ loop.index0 + 1 }}:{{ bridge }}{% if not loop.last %},{% endif %}{% endfor %}
|
|
{% endif %}
|
|
|
|
ovsdb_connection = tcp:{{ api_interface_address }}:6640
|
|
{% if enable_nova_fake | bool %}
|
|
integration_bridge = br-int-{{ item }}
|
|
{% endif %}
|
|
{% elif neutron_plugin_agent == "linuxbridge" %}
|
|
[linux_bridge]
|
|
physical_interface_mappings = physnet1:{{ neutron_external_interface }}
|
|
|
|
{% if not enable_hyperv | bool %}
|
|
[vxlan]
|
|
l2_population = true
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if inventory_hostname in groups["network"] or inventory_hostname in groups["compute"] %}
|
|
local_ip = {{ tunnel_interface_address }}
|
|
{% endif %}
|