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 67f053571a1e027901e8892f9c38eefe96bd94c5..976196f94c46f5650c7094ed1522acd7e9f88c8d 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 7ad3d7a9af5d8676b2415826f1b8d97e025ea9e2..193293a57a75db17bc050c0454ab866fa8c54706 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: