Browse Source

Merge "Fix network_cidrs when ManageNetworks: false" into stable/victoria

changes/64/794064/1 13.3.0
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
c8c5fc1092
1 changed files with 6 additions and 18 deletions
  1. +6
    -18
      network/network.j2

+ 6
- 18
network/network.j2 View File

@ -277,27 +277,15 @@ outputs:
network_cidrs:
description: List of {{network.name}} network's subnets in CIDR notation.
value:
list_concat:
if:
- manage_networks
- - - {get_attr: [{{network.name}}Subnet, cidr]}
-
if:
- manage_networks
- - {get_attr: [{{network.name}}Subnet, cidr]}
{%- for subnet in network.subnets|default({}) if network.subnets[subnet].enabled|default(true) %}
- {get_attr: [{{network.name}}Subnet_{{subnet}}, cidr]}
- {get_attr: [{{network.name}}Subnet_{{subnet}}, cidr]}
{%- endfor %}
- -
{%- if network.ipv6 or ipv6_override %}
- {{network.ipv6_subnet|default(network.ip_subnet|default(""))}}
{%- else %}
- "{{network.ip_subnet|default("")}}"
{%- endif %}
-
- - {get_param: {{network.name}}NetCidr}
{%- for subnet in network.subnets|default({}) if network.subnets[subnet].enabled|default(true) %}
{%- if network.ipv6 or ipv6_override %}
- "{{network.subnets[subnet]['ipv6_subnet']|default(network.subnets[subnet]['ip_subnet']|default(""))}}"
{%- else %}
- "{{network.subnets[subnet]['ip_subnet']|default("")}}"
{%- endif %}
- {get_param: {{network.name}}SubnetCidr_{{subnet}}}
{%- endfor %}
network_attrs:


Loading…
Cancel
Save