Fix jinja2 for VipSubnetMapDefaults redis and ovs_dbs

The current jinja2 code results in the same value no matter
what is in _service_nets so it really has no effect. We can
just as well hard-code the values, which is what this change
does.

Change-Id: I2b212bec170cc93c40f81050d11f696275d8b1ea
This commit is contained in:
Harald Jensås 2021-02-19 11:30:38 +01:00
parent cada48fc30
commit b842a58e2b
1 changed files with 2 additions and 3 deletions

View File

@ -132,9 +132,8 @@ parameters:
{%- for network in networks if network.vip|default(false) %}
{{network.name}}: {{network.name_lower}}_subnet
{%- endfor %}
# FIXME(hjensas): This will return the same value no matter what ...
redis: {{ _service_nets.get('internal_api', 'internal_api') }}_subnet
ovn_dbs: {{ _service_nets.get('internal_api', 'internal_api') }}_subnet
redis: internal_api_subnet
ovn_dbs: internal_api_subnet
type: json
# We define mappings to work around names that break when doing the