Also assign default subnets to network segment
Right now only additional subnets get assigned to a network segment. But this fails as either all or none subnets on a network must be assigned with segments. This removes the conditional to also assign the default subnet to the segment. Change-Id: Ief7af583d03c07f30662abf86da21451f8361197 Closes-Bug: #1840039
This commit is contained in:
parent
18ad6caa69
commit
461ee36dd0
@ -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
Block a user