Skip to content
Snippets Groups Projects
Commit 3650a6e2 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

manage_bgp_peers: load bgp_custom object when custom policies are selected

parent 92ac851a
No related branches found
No related tags found
1 merge request!288Fix/mar migration fixes
Pipeline #95321 passed
......@@ -33,6 +33,14 @@
ansible.builtin.include_vars:
file: /opt/ansible_inventory/geant_services/L3CoreService/{{ subscription.product.product_type | upper | replace(' ', '_') }}/bgp.yaml
- name: Import {{ gso_partner_name }} specific variables for {{ gso_product_type | replace(' ', '_') }}
when: >
ap_list | selectattr('sbp.custom_firewall_filters', 'eq', true) | list | length > 0
or
ap_list | map(attribute='sbp.bgp_session_list') | flatten | selectattr('has_custom_policies', 'eq', true) | list | length > 0
ansible.builtin.include_vars:
dir: /opt/ansible_inventory/geant_partners/{{ gso_partner_name }}/{{ gso_product_type | replace(' ', '_') | upper }}
- name: Check BGP neighbors
when: verb == 'check'
ansible.builtin.include_role:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment