Skip to content

Commit

Permalink
[BGP] ipv4routes can be defined for netconfig
Browse files Browse the repository at this point in the history
In case of octavia, ipv4routes will be needed to connect to the
management network.
  • Loading branch information
eduolivares committed Nov 5, 2024
1 parent 3ca9410 commit 78297e7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ data:
- end: {{ range.end }}
start: {{ range.start }}
{% endfor %}
{% if network.tools.netconfig.ipv4_routes | default(false) %}
routes:
{% for route in network.tools.netconfig.ipv4_routes %}
- destination: {{ route.destination }}
nexthop: {{ route.gateway }}
{% endfor %}
{% endif %}
cidr: {{ network.network_v4 }}
{% if network.gw_v4 is defined %}
gateway: {{ network.gw_v4 }}
Expand Down

0 comments on commit 78297e7

Please sign in to comment.