From 032f963737447cb18c02b3cb975f8b9517b4895b Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <ak@geant.org> Date: Thu, 16 Jan 2025 16:45:42 +0000 Subject: [PATCH] VPRN template updates - add aggregates if defined - add BGP stanza description == VPRN name --- .../roles/bc_templates/routers/nokia/router/vprn.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 9f7be1fb..62e377e5 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 %} -- GitLab