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

Merge branch 'feature/nat-705-prefix-lists' into 'develop'

Updated template for ip_prefix_list

See merge request !160
parents fe37ef36 ef03df51
No related branches found
No related tags found
1 merge request!160Updated template for ip_prefix_list
Pipeline #88190 passed
...@@ -39,3 +39,7 @@ ...@@ -39,3 +39,7 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
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: Merge P and PE prefix-lists
ansible.builtin.set_fact:
nokia_prefix_lists: "{{ [nokia_prefix_lists, nokia_pe_prefix_lists] | community.general.lists_mergeby('name',
list_merge='append') }}"
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
<description>{{ ip_prefix.description }}</description> <description>{{ ip_prefix.description }}</description>
{% endif %} {% endif %}
<apply-path> <apply-path>
{% for ap in ip_prefix.ipv4_apply_path %}
<bgp-peers> <bgp-peers>
{% for ap in ip_prefix.ipv4_apply_path %}
<criterion-index>{{ ap.idx }}</criterion-index> <criterion-index>{{ ap.idx }}</criterion-index>
<group>{{ ap.bgp_group }}</group> <group>{{ ap.bgp_group }}</group>
<neighbor>{{ ap.bgp_neighbor }}</neighbor> <neighbor>{{ ap.bgp_neighbor }}</neighbor>
<router-instance>{{ ap.router_instance }}</router-instance> <router-instance>{{ ap.router_instance }}</router-instance>
{% endfor %}
</bgp-peers> </bgp-peers>
{% endfor %}
</apply-path> </apply-path>
</ip-prefix-list> </ip-prefix-list>
{% endif %} {% endif %}
...@@ -52,14 +52,14 @@ ...@@ -52,14 +52,14 @@
<description>{{ ip_prefix.description }}</description> <description>{{ ip_prefix.description }}</description>
{% endif %} {% endif %}
<apply-path> <apply-path>
{% for ap in ip_prefix.ipv6_apply_path %}
<bgp-peers> <bgp-peers>
{% for ap in ip_prefix.ipv6_apply_path %}
<criterion-index>{{ ap.idx }}</criterion-index> <criterion-index>{{ ap.idx }}</criterion-index>
<group>{{ ap.bgp_group }}</group> <group>{{ ap.bgp_group }}</group>
<neighbor>{{ ap.bgp_neighbor }}</neighbor> <neighbor>{{ ap.bgp_neighbor }}</neighbor>
<router-instance>{{ ap.router_instance }}</router-instance> <router-instance>{{ ap.router_instance }}</router-instance>
{% endfor %}
</bgp-peers> </bgp-peers>
{% endfor %}
</apply-path> </apply-path>
</ipv6-prefix-list> </ipv6-prefix-list>
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment