feat(calico): add support filters on bgppeers per node definition (#11079)

Signed-off-by: MatthieuFin <matthieu2717@gmail.com>
pull/11105/head
MatthieuFin 2024-04-22 04:35:34 +02:00 committed by GitHub
parent 929c818b63
commit 3d19e744f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@
"asNumber": "{{ item.as }}",
"node": "{{ inventory_hostname }}",
"peerIP": "{{ item.router_id }}",
{% if calico_version is version('v3.26.0', '>=') and (item.filters | default([]) | length > 0) %}
"filters": {{ item.filters }},
{% endif %}
"sourceAddress": "{{ item.sourceaddress | default('UseNodeIP') }}"
}}
register: output