Merge "Also assign default subnets to network segment"

This commit is contained in:
Zuul 2019-08-15 02:12:53 +00:00 committed by Gerrit Code Review
commit 17c0a1d9f8
1 changed files with 0 additions and 2 deletions

View File

@ -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}}: