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

Updated template for ip_prefix_list

Fixed template to include multiple instances in apply-path configuration
section (for BGP prefix list).
parent fe37ef36
No related branches found
No related tags found
1 merge request!160Updated template for ip_prefix_list
......@@ -34,14 +34,14 @@
<description>{{ ip_prefix.description }}</description>
{% endif %}
<apply-path>
{% for ap in ip_prefix.ipv4_apply_path %}
<bgp-peers>
{% for ap in ip_prefix.ipv4_apply_path %}
<criterion-index>{{ ap.idx }}</criterion-index>
<group>{{ ap.bgp_group }}</group>
<neighbor>{{ ap.bgp_neighbor }}</neighbor>
<router-instance>{{ ap.router_instance }}</router-instance>
{% endfor %}
</bgp-peers>
{% endfor %}
</apply-path>
</ip-prefix-list>
{% endif %}
......@@ -52,14 +52,14 @@
<description>{{ ip_prefix.description }}</description>
{% endif %}
<apply-path>
{% for ap in ip_prefix.ipv6_apply_path %}
<bgp-peers>
{% for ap in ip_prefix.ipv6_apply_path %}
<criterion-index>{{ ap.idx }}</criterion-index>
<group>{{ ap.bgp_group }}</group>
<neighbor>{{ ap.bgp_neighbor }}</neighbor>
<router-instance>{{ ap.router_instance }}</router-instance>
{% endfor %}
</bgp-peers>
{% endfor %}
</apply-path>
</ipv6-prefix-list>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment