Merge "Fix multiple-nic sample template"

This commit is contained in:
Zuul 2018-11-10 06:58:43 +00:00 committed by Gerrit Code Review
commit c1bf5d8b10

View File

@ -106,6 +106,14 @@ resources:
addresses:
- ip_netmask:
get_param: {{network.name}}IpSubnet
routes:
list_concat_unique:
- get_param: {{network.name}}InterfaceRoutes
{%- if network.name in role.default_route_networks %}
- - default: true
next_hop:
get_param: {{network.name}}InterfaceDefaultRoute
{%- endif %}
{%- endif %}
{%- elif network.name in role.networks or role.name == 'Networker' or role.name == 'ComputeDVR' %}
- type: ovs_bridge
@ -119,14 +127,14 @@ resources:
addresses:
- ip_netmask:
get_param: {{network.name}}IpSubnet
{%- endif %}
routes:
list_concat_unique:
- get_param: {{network.name}}InterfaceRoutes
list_concat_unique:
- get_param: {{network.name}}InterfaceRoutes
{%- if network.name in role.default_route_networks %}
- - default: true
next_hop:
get_param: {{network.name}}InterfaceDefaultRoute
- - default: true
next_hop:
get_param: {{network.name}}InterfaceDefaultRoute
{%- endif %}
{%- endif %}
members:
- type: interface