Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,31 @@ data:
{% endif %}
{% endif %}
{% if network.tools.multus is defined %}
{% if 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 }}"
}
}
{% else %}
net-attach-def: |
{
"cniVersion": "0.3.1",
Expand All @@ -103,6 +128,7 @@ data:
}
}
{% endif %}
{% endif %}
{% endfor %}

dns-resolver:
Expand Down
Loading