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

PE SNMP communities and Source addresses

parent a527d1ee
No related branches found
No related tags found
1 merge request!194PE SNMP communities and Source addresses
Pipeline #90312 passed
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
cpm_filters: "{{ [cpm_filters, pe_cpm] | community.general.lists_mergeby('family', cpm_filters: "{{ [cpm_filters, pe_cpm] | community.general.lists_mergeby('family',
list_merge='append') }}" 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 - name: Merge P and PE prefix-lists
ansible.builtin.set_fact: ansible.builtin.set_fact:
nokia_prefix_lists: "{{ [nokia_prefix_lists, nokia_pe_prefix_lists, nokia_pe_ias_prefix_lists] | community.general.lists_mergeby('name', nokia_prefix_lists: "{{ [nokia_prefix_lists, nokia_pe_prefix_lists, nokia_pe_ias_prefix_lists] | community.general.lists_mergeby('name',
......
...@@ -25,6 +25,15 @@ ...@@ -25,6 +25,15 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
sdp_type: "{{ (sdp_types | selectattr('id', 'equalto', '1'))[0] }}" 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 - name: Prepare PE-specific base config vars
when: verb == "deploy_routing_instances" when: verb == "deploy_routing_instances"
block: block:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment