diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2 index 97226c2c70f813548a66d850f388b5cc605b6850..9d3c86932a1769be1dcb609deef12e91866c8291 100644 --- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2 +++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/router_base.j2 @@ -1,6 +1,9 @@ <router xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes"> <router-name>Base</router-name> <autonomous-system xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">{{ geant_re_as_number }}</autonomous-system> + {% if router_role == 'pe' and pe_bgp_base.ecmp is defined %} + <ecmp>{{ pe_bgp_base.ecmp }}</ecmp> + {% endif %} <router-id xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">{{ lo_ipv4_address }}</router-id> <interface xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes"> <interface-name>system</interface-name> 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 23185e594b0c5ecf49b9cd3b1ef5216bbe2237c0..ec4648f9730af89e9b27a5278998215b4a881bad 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 @@ -8,6 +8,9 @@ <service-id>{{ vprn.service_id }}</service-id> <customer>{{ vprn.customer_id }}</customer> <autonomous-system>{{ vprn.asn }}</autonomous-system> + {% if vprn.ecmp is defined %} + <ecmp>{{ vprn.ecmp }}</ecmp> + {% endif %} <bgp-ipvpn> <mpls> <admin-state>enable</admin-state>