Fix net_cidr_map in environments/deployed-network-environment.j2.yaml

With multiple subnets per network the net_cidr_map right now looks like:
    net_cidr_map:
      external:
      - 10.0.0.0/24
      internal_api:
      - 172.17.0.0/24
      internal_api:
      - 172.17.1.0/24
      internal_api:
      - 172.17.2.0/24
      storage:
      - 172.18.0.0/24
      storage:
      - 172.18.1.0/24
      storage:
      - 172.18.2.0/24
      ...

While it should be:
    net_cidr_map:
      external:
      - 10.0.0.0/24
      internal_api:
      - 172.17.0.0/24
      - 172.17.1.0/24
      - 172.17.2.0/24
      storage:
      - 172.18.0.0/24
      - 172.18.1.0/24
      - 172.18.2.0/24
      ...

Change-Id: I365e0e41ed78c79175d97f11c3a6fd69460bae5f
This commit is contained in:
Martin Schuppert 2022-08-05 12:04:58 +02:00
parent b36d30e898
commit 602de1af0b
1 changed files with 1 additions and 1 deletions

View File

@ -53,8 +53,8 @@ parameter_defaults:
net_cidr_map:
{%- for network in networks if network.enabled|default(true) %}
{%- for subnet in network.subnets %}
{{ network.name_lower }}:
{%- for subnet in network.subnets %}
- {{ network.subnets[subnet].ip_subnet }}
{%- endfor %}
{%- endfor %}