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 e6159684954581f2b05213097bd0afac75037c8f..0b911be76645cdacaf2ae7e63a50deb93d595ca2 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" %}