Merge "Fix multiple-nic sample template"

changes/98/604298/79
Zuul 4 years ago committed by Gerrit Code Review
commit c1bf5d8b10
  1. 20
      network/config/multiple-nics/role.role.j2.yaml

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

Loading…
Cancel
Save