Skip to content
Snippets Groups Projects
Unverified Commit 2f2ed116 authored by Arthur Outhenin-Chalandre's avatar Arthur Outhenin-Chalandre Committed by GitHub
Browse files

Improve metallb template for bgp peers (#6574)

parent e91c6a7b
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,4 @@ metallb_protocol: "layer2" ...@@ -5,3 +5,4 @@ metallb_protocol: "layer2"
metallb_port: "7472" metallb_port: "7472"
metallb_limits_cpu: "100m" metallb_limits_cpu: "100m"
metallb_limits_mem: "100Mi" metallb_limits_mem: "100Mi"
metallb_peers: []
...@@ -6,7 +6,7 @@ metadata: ...@@ -6,7 +6,7 @@ metadata:
name: config name: config
data: data:
config: | config: |
{% if metallb_protocol == 'bgp' %} {% if metallb_peers | length > 0 %}
peers: peers:
{% for peer in metallb_peers %} {% for peer in metallb_peers %}
- peer-address: {{ peer.peer_address }} - peer-address: {{ peer.peer_address }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment