Merge "Also assign default subnets to network segment"
This commit is contained in:
commit
17c0a1d9f8
|
@ -162,10 +162,8 @@ resources:
|
|||
allocation_pools: {get_param: {{network.name}}AllocationPools}
|
||||
gateway_ip: {get_param: {{network.name}}InterfaceDefaultRoute}
|
||||
host_routes: {get_param: {{network.name}}Routes}
|
||||
{%- if network.subnets|default({}) %}
|
||||
# All networks have an implicit network segment when created, map this subnet to that segment.
|
||||
segment: {get_attr: [{{network.name}}Network, segments, 0, id]}
|
||||
{%- endif %}
|
||||
|
||||
{% for subnet in network.subnets|default({}) if network.subnets[subnet].enabled|default(true) %}
|
||||
{{network.name}}Segment_{{subnet}}:
|
||||
|
|
Loading…
Reference in New Issue