Skip to content

Commit

Permalink
Add octavia nad customization to uni04delta-ipv6
Browse files Browse the repository at this point in the history
Adds the routes override to the uni04delta ipv6 job
  • Loading branch information
beagles committed Oct 9, 2024
1 parent eb3e0d9 commit 98b6c08
Showing 1 changed file with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,31 @@ data:
}
}
{% endif %}
{% if network.tools.multus is defined and network.network_name == "octavia" %}
net-attach-def: |
{
"cniVersion": "0.3.1",
"name": "octavia",
"type": "bridge",
"bridge": "octbr",
"ipam": {
"type": "whereabouts",
"range": "{{ network[_ipv.network_vX] }}",
{% if _ipv.ipvX_routes in network.tools.multus and network.tools.multus[_ipv.ipvX_routes] | length > 0 %}
"routes": [
{% for route in network.tools.multus[_ipv.ipvX_routes] %}
{
"dst": "{{ route.destination }}",
"gw": "{{ route.gateway }}"
}{% if not loop.last %},{% endif %}
{% endfor %}
],
{% endif %}
"range_start": "{{ network.tools.multus[_ipv.ipvX_ranges].0.start }}",
"range_end": "{{ network.tools.multus[_ipv.ipvX_ranges].0.end }}"
}
}
{% endif %}
{% if network.tools.multus is defined and network.network_name == "ironic" %}
net-attach-def: |
{
Expand All @@ -102,7 +127,7 @@ data:
}
}
{% endif %}
{% if network.tools.multus is defined and network.network_name not in ["ctlplane", "ironic"] %}
{% if network.tools.multus is defined and network.network_name not in ["ctlplane", "ironic", "octavia"] %}
net-attach-def: |
{
"cniVersion": "0.3.1",
Expand Down

0 comments on commit 98b6c08

Please sign in to comment.