{% for cilium_loadbalancer_ip_pool in cilium_loadbalancer_ip_pools %}
---
apiVersion: "cilium.io/v2"
kind: CiliumLoadBalancerIPPool
metadata:
  name: "{{ cilium_loadbalancer_ip_pool.name }}"
spec:
  blocks:
{% for cblock in cilium_loadbalancer_ip_pool.cidrs | default([]) %}
  - cidr: "{{ cblock }}"
{% endfor %}
{% for rblock in cilium_loadbalancer_ip_pool.ranges | default([]) %}
  - start: "{{ rblock.start }}"
    stop: "{{ rblock.stop | default(rblock.start) }}"
{% endfor %}
{% endfor %}
