From 256485d819df1217fdb02cd1ef73cbd365ea0cbe Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local> Date: Tue, 27 Aug 2024 19:10:52 +0100 Subject: [PATCH] base_bgp - added support for multipath --- .../routers/nokia/router/base_bgp.j2 | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/base_bgp.j2 b/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/base_bgp.j2 index e6159684..0b911be7 100644 --- a/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/base_bgp.j2 +++ b/geant/gap_ansible/roles/promote_p_to_pe/templates/routers/nokia/router/base_bgp.j2 @@ -25,6 +25,28 @@ </shortcut-tunnel> </next-hop-resolution> {% endif %} + {% if pe_bgp_base.multipath is defined %} + <multipath alu:operation="replace"> + {% if pe_bgp_base.multipath.ibgp is defined %} + <ibgp>{{ pe_bgp_base.multipath.ibgp }}</ibgp> + {% endif %} + {% if pe_bgp_base.multipath.ebgp is defined %} + <ebgp>{{ pe_bgp_base.multipath.ebgp }}</ebgp> + {% endif %} + {% if pe_bgp_base.multipath.ipv4 is defined %} + <family> + <family-type>ipv4</family-type> + <max-paths>{{ pe_bgp_base.multipath.ipv4 }}</max-paths> + </family> + {% endif %} + {% if pe_bgp_base.multipath.ipv6 is defined %} + <family> + <family-type>ipv6</family-type> + <max-paths>{{ pe_bgp_base.multipath.ipv6 }}</max-paths> + </family> + {% endif %} + </multipath> + {% endif %} {% with bgp_obj=pe_bgp_tools %} {% include "router/bgp_group.j2" %} {% include "router/bgp_neighbor.j2" %} -- GitLab