From 7edb9e9e0d20c44305862a2cec770d03463a125d Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <ak@geant.org> Date: Tue, 12 Nov 2024 17:43:07 +0000 Subject: [PATCH] PE SNMP communities and Source addresses --- .../roles/base_config/tasks/merge_variables.yaml | 4 ++++ .../roles/promote_p_to_pe/tasks/merge_variables.yaml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/geant/gap_ansible/roles/base_config/tasks/merge_variables.yaml b/geant/gap_ansible/roles/base_config/tasks/merge_variables.yaml index 67f05357..976196f9 100644 --- a/geant/gap_ansible/roles/base_config/tasks/merge_variables.yaml +++ b/geant/gap_ansible/roles/base_config/tasks/merge_variables.yaml @@ -40,6 +40,10 @@ cpm_filters: "{{ [cpm_filters, pe_cpm] | community.general.lists_mergeby('family', list_merge='append') }}" + - name: Combine P and PE SNMP communities + ansible.builtin.set_fact: + nokia_snmp_communities: "{{ [nokia_snmp_communities, pe_snmp_communities] | community.general.lists_mergeby('name', list_merge='append') }}" + - name: Merge P and PE prefix-lists ansible.builtin.set_fact: nokia_prefix_lists: "{{ [nokia_prefix_lists, nokia_pe_prefix_lists, nokia_pe_ias_prefix_lists] | community.general.lists_mergeby('name', diff --git a/geant/gap_ansible/roles/promote_p_to_pe/tasks/merge_variables.yaml b/geant/gap_ansible/roles/promote_p_to_pe/tasks/merge_variables.yaml index 7ad3d7a9..193293a5 100644 --- a/geant/gap_ansible/roles/promote_p_to_pe/tasks/merge_variables.yaml +++ b/geant/gap_ansible/roles/promote_p_to_pe/tasks/merge_variables.yaml @@ -25,6 +25,15 @@ ansible.builtin.set_fact: sdp_type: "{{ (sdp_types | selectattr('id', 'equalto', '1'))[0] }}" + - name: Combine P and PE SNMP communities + ansible.builtin.set_fact: + nokia_snmp_communities: "{{ [nokia_snmp_communities, pe_snmp_communities] | community.general.lists_mergeby('name', list_merge='append') }}" + + - name: Merge P and PE source-addresses + ansible.builtin.set_fact: + nokia_applications: "{{ [nokia_applications, nokia_pe_applications] | community.general.lists_mergeby('name', list_merge='append') }}" + + - name: Prepare PE-specific base config vars when: verb == "deploy_routing_instances" block: -- GitLab