Browse Source

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

Signed-off-by: MatthieuFin <matthieu2717@gmail.com>
pull/11105/head
MatthieuFin 7 months ago
committed by GitHub
parent
commit
3d19e744f0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions
  1. 3
      roles/network_plugin/calico/tasks/peer_with_router.yml

3
roles/network_plugin/calico/tasks/peer_with_router.yml

@ -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

Loading…
Cancel
Save