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

Update generate_route_list to include -H flag dynamically

parent 54f16ce8
No related branches found
No related tags found
1 merge request!284Update generate_route_list to include -H flag dynamically
Pipeline #95259 passed
---
- name: Collect plain IPV{{ bgpq_query_type }} routes from {{ route_obj }}
when: partner.type in ['NREN']
ansible.builtin.command: "{{ bgpq_ver }} -j{{ bgpq_query_type }} {{ route_obj }}"
register: bgpq_routes_in_json
changed_when: true
- name: Collect summarized IPV{{ bgpq_query_type }} routes from {{ route_obj }}
when: partner.type in ['RANDEPEER', 'RE']
ansible.builtin.command: "{{ bgpq_ver }} -{{ bgpq_agg_flag }} -j{{ bgpq_query_type }} {{ route_obj }}"
ansible.builtin.command: "{{ bgpq_ver }} {{ bgpq_agg_flag if partner.type in ['RE'] }} -j{{ bgpq_query_type }} {{ route_obj }}"
register: bgpq_routes_in_json
changed_when: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment