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

VPRN template updates

- add aggregates if defined
- add BGP stanza description == VPRN name
parent c820d8f2
No related branches found
No related tags found
1 merge request!211Add local address in BGP neighbor template
...@@ -26,7 +26,19 @@ ...@@ -26,7 +26,19 @@
</auto-bind-tunnel> </auto-bind-tunnel>
</mpls> </mpls>
</bgp-ipvpn> </bgp-ipvpn>
{% if vprn.aggregates is defined %}
<aggregates>
{% for ag in vprn.aggregates %}
<aggregate>
<ip-prefix>{{ ag.ip_prefix }}</ip-prefix>
<community>{{ ag.community }}</community>
<discard-component-communities>{{ ag.dcc }}</discard-component-communities>
</aggregate>
{% endfor %}
</aggregates>
{% endif %}
<bgp> <bgp>
<description>{{ vprn.name }}</description>
{% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %} {% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %}
{% include 'router/bgp_base.j2' %} {% include 'router/bgp_base.j2' %}
{% endwith %} {% endwith %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment