Skip to content
Snippets Groups Projects
Unverified Commit 7919a471 authored by Christian's avatar Christian Committed by GitHub
Browse files

[metallb] add config option for IPAddressPool avoidBuggyIPs (#10458)

* Add avoid_buggy_ips as optional
* Revert avoid_buggy_ips default back to false
* Change auto_assign to optional, default true
parent 7b258694
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,6 @@ metallb_config: ...@@ -73,7 +73,6 @@ metallb_config:
primary: primary:
ip_range: ip_range:
- 192.0.1.0-192.0.1.254 - 192.0.1.0-192.0.1.254
auto_assign: true
pool1: pool1:
ip_range: ip_range:
...@@ -82,8 +81,8 @@ metallb_config: ...@@ -82,8 +81,8 @@ metallb_config:
pool2: pool2:
ip_range: ip_range:
- 192.0.2.2-192.0.2.2 - 192.0.3.0/24
auto_assign: false avoid_buggy_ips: true # When set to true, .0 and .255 addresses will be avoided.
``` ```
## Layer2 Mode ## Layer2 Mode
......
...@@ -16,7 +16,7 @@ spec: ...@@ -16,7 +16,7 @@ spec:
{% for ip_range in pool.ip_range %} {% for ip_range in pool.ip_range %}
- "{{ ip_range }}" - "{{ ip_range }}"
{% endfor %} {% endfor %}
autoAssign: {{ pool.auto_assign }} autoAssign: {{ pool.auto_assign | default(true) }}
avoidBuggyIPs: true avoidBuggyIPs: {{ pool.avoid_buggy_ips | default(false) }}
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment