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

Right now {{network.name}}Routes is only rendered properly
for ipv4. This adds condition to check for ipv6 routes
and adds them if set.

Change-Id: If8f6c9eb46db96c087f19de028359246bb46cbc5
This commit is contained in:
Martin Schuppert 2022-03-08 12:15:29 +01:00
parent ab71ee8d79
commit 35eb903a85
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 %}