Merge "Fix network-environment.yaml ipv6 {{network.name}}Routes"

This commit is contained in:
Zuul 2022-03-09 10:33:00 +00:00 committed by Gerrit Code Review
commit 8ecddcbc52
1 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,10 @@ parameter_defaults:
# Customize the VLAN ID to match the local environment
{{network.name}}NetworkVlanID: {{network.vlan}}
{%- endif %}
{%- if network.routes %}
{%- if network.ipv6|default(false) and network.routes_ipv6 %}
# Routes to add to host_routes property of the subnets in neutron.
{{network.name}}Routes: {{network.routes_ipv6|default([])}}
{%- elif network.routes %}
# Routes to add to host_routes property of the subnets in neutron.
{{network.name}}Routes: {{network.routes|default([])}}
{%- endif %}