Merge "Fix network rename + service_net_map_replace"
This commit is contained in:
commit
b3b48cdc69
|
@ -487,7 +487,12 @@ resources:
|
|||
- {{role.name}}_{{network.name}}_fixed_ip_set
|
||||
- [{ip_address: {get_param: [{{role.name}}IPs, '{{network.name_lower}}', {get_param: NodeIndex}]}}]
|
||||
{%- if role.networks is mapping and role.networks.get(network.name) %}
|
||||
{%- if network.get('service_net_map_replace') == role.networks[network.name].get('subnet').split('_subnet', -1)[0]
|
||||
and role.networks[network.name].get('subnet').split('_subnet', -1)[0] not in network.get('subnets', {}).keys() %}
|
||||
- [{subnet: {{network.name_lower + '_subnet'}}}]
|
||||
{%- else %}
|
||||
- [{subnet: {{role.networks[network.name].get('subnet', network.name_lower + '_subnet')}}}]
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
- [{subnet: {{network.name_lower}}_subnet}]
|
||||
{%- endif %}
|
||||
|
|
Loading…
Reference in New Issue