Add variable to control distributed FIP choice

On OVN you can configure if Floating IPs should flow directly from compute
nodes or through gateway hosts.

While this parameter can be overriden with neutron_ml2_conf_ini_overrides variable,
it might be useful for some more advanced logic in follow-up patches.

Change-Id: Ib20cd013cbf396f14e88faabc36f012fc14c3f3a
This commit is contained in:
Dmitriy Rabotyagov 2024-02-19 18:04:19 +01:00 committed by Dmitriy Rabotyagov
parent 4e855db6b2
commit 112d379094
2 changed files with 2 additions and 0 deletions

View File

@ -508,6 +508,7 @@ neutron_ovn_primary_cluster_node: "{{ groups[neutron_services['neutron-ovn-north
neutron_ovn_northd_service_name: ovn-northd
neutron_ovn_controller_service_name: ovn-controller
neutron_ovn_l3_scheduler: leastloaded
neutron_ovn_distributed_fip: False
neutron_ovn_nb_connection: >-
{{ ovn_proto }}:{{ groups['neutron_ovn_northd'] | map('extract', hostvars, ['ansible_host']) | join(':6641,' + ovn_proto + ':') }}:6641
neutron_ovn_sb_connection: >-

View File

@ -47,6 +47,7 @@ ovn_native_dhcp = True
ovn_nb_connection = {{ neutron_ovn_nb_connection }}
ovn_sb_connection = {{ neutron_ovn_sb_connection }}
ovn_l3_scheduler = {{ neutron_ovn_l3_scheduler }}
enable_distributed_floating_ip = {{ neutron_ovn_distributed_fip }}
ovn_metadata_enabled = True
{% endif %}
{% if neutron_ovn_ssl and (neutron_services['neutron-server']['group'] in group_names or neutron_services['neutron-ovn-controller']['group'] in group_names) %}