diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 index 9f7be1fb1b3150caf78d92e3f37d753cb4e0ace6..62e377e502b488bfe2baac8a25a424ba5a04f34f 100644 --- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 +++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 @@ -26,7 +26,19 @@ </auto-bind-tunnel> </mpls> </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> + <description>{{ vprn.name }}</description> {% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %} {% include 'router/bgp_base.j2' %} {% endwith %}