Respect defined neutron_dnsmasq_dns_servers for OVN

At the moment variable neutron_dnsmasq_dns_servers is respected
only for OVS/LXB scenarios, when dnsmasq is used. At the same
time we do not have any sane way to supply a list of DNS servers
for OVN.

Let's re-use the variable as actual behaviour behind it will be the
same [1]

[1] https://docs.openstack.org/neutron/latest/configuration/ml2-conf.html#ovn.dns_servers

Change-Id: Iabe6381fe9add1b3fac4179fdcd3d49dab099dad
This commit is contained in:
Dmitriy Rabotyagov 2025-02-12 11:10:02 +01:00
parent ed34c4ab97
commit 55c7b50e77
2 changed files with 3 additions and 0 deletions

View File

@ -461,6 +461,7 @@ neutron_l3_agent_extensions: "{{ _neutron_l3_agent_extensions }}"
###
# Comma-separated list of DNS servers which will be used by dnsmasq as forwarders.
# This variable will be used for the same purpose for OVN, when dnsmasq is not used.
neutron_dnsmasq_dns_servers: ""
# Limit number of leases to prevent a denial-of-service.

View File

@ -49,6 +49,8 @@ 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
dns_servers = {{ neutron_dnsmasq_dns_servers }}
dhcp_default_lease_time = {{ neutron_dnsmasq_lease_max }}
{% endif %}
{% if neutron_ovn_ssl and (neutron_services['neutron-server']['group'] in group_names or neutron_services['neutron-ovn-controller']['group'] in group_names) %}
ovn_sb_ca_cert={{ [neutron_conf_version_dir, neutron_ovn_ssl_ca_cert] | join('/') }}