Skip to content

Commit

Permalink
Fixed an issue where DNS servers were not set correctly in for custom…
Browse files Browse the repository at this point in the history
… Providentia IP pool names
  • Loading branch information
AllRWeak authored and at3rva committed Dec 7, 2023
1 parent 9aeed5a commit 3af90a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova/core/roles/configure_networking/templates/netplan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ network:
{% if (interface.egress) and (dns_server_combined != []) %}
nameservers:
addresses:
{% if (dns_servers != []) and (interface.addresses | map(attribute='pool_id') | regex_search(".*ipv4.*")) %}
{% if (dns_servers != []) and (interface.addresses | map(attribute='mode') | regex_search(".*ipv4.*")) %}
{% for address in dns_servers %}
- {{ address }}
{% endfor %}
{% endif %}
{% if (dns_servers6 != []) and (interface.addresses | map(attribute='pool_id') | regex_search(".*ipv6.*")) %}
{% if (dns_servers6 != []) and (interface.addresses | map(attribute='mode') | regex_search(".*ipv6.*")) %}
{% for address in dns_servers6 %}
- "{{ address }}"
{% endfor %}
Expand Down

0 comments on commit 3af90a6

Please sign in to comment.