Skip to content

Commit

Permalink
[BGP] Add octavia IPv4 routes to network-values template
Browse files Browse the repository at this point in the history
Apply the same changes from [1] to bgp_dt01 templates. Restricted to
IPv4, since BGP_DT01 does not support IPv6 yet.

[1] openstack-k8s-operators#1756
  • Loading branch information
eduolivares authored and openshift-merge-bot[bot] committed Oct 24, 2024
1 parent cf200c7 commit 9a70c36
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ data:
"ipam": {
"type": "whereabouts",
"range": "{{ network.network_v4 }}",
{% if network.network_name == "octavia" and network.tools.multus.ipv4_routes | default([]) | length > 0 %}
"routes": [
{% for route in network.tools.multus.ipv4_routes %}
{
"dst": "{{ route.destination }}",
"gw": "{{ route.gateway }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
],
{% endif %}
"range_start": "{{ network.tools.multus.ipv4_ranges.0.start }}",
"range_end": "{{ network.tools.multus.ipv4_ranges.0.end }}"
}
Expand Down

0 comments on commit 9a70c36

Please sign in to comment.