Skip to content
Snippets Groups Projects

FW_filters template reworked

Merged Aleksandr Kurbatov requested to merge feature/nat-704-pe-cpm-fw into develop
2 files
+ 73
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -27,3 +27,15 @@
- name: Merge Nokia CPM filters
ansible.builtin.set_fact:
cpm_filters: "{{ lookup('community.general.merge_variables', 'cpmf__to_merge', pattern_type='suffix') }}"
- name: Prepare PE-specific vars
when: promote_to_pe | ansible.builtin.bool # FIX: check the exact verb / keyword
block:
- name: Merge Nokia PE CPM filters
ansible.builtin.set_fact:
pe_cpm: "{{ lookup('community.general.merge_variables', 'cpm_pe__to_merge') }}"
- name: Combine P and PE CPM filters
ansible.builtin.set_fact:
cpm_filters: "{{ [cpm_filters, pe_cpm] | community.general.lists_mergeby('family',
list_merge='append') }}"
Loading