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 f067095971fa33c79b5fdd9704909cecb06db937..72e72de54e7f001c6848670850a945c4dc9e585d 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,9 +1,10 @@ <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' or is_pe_promotion_wf) and pe_bgp_base.ecmp is defined %} + {% if (router_role == 'pe' or is_pe_promotion_wf) and pe_bgp_base.ecmp is defined %} <ecmp>{{ pe_bgp_base.ecmp }}</ecmp> - {% endif %} + {% endif %} + {% if not is_pe_promotion_wf %} <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> @@ -41,11 +42,12 @@ <interface-name>system</interface-name> </interface> </rsvp> - {% include 'router/base_static_routes.j2' %} - {% include 'router/bgp.j2' %} {% include 'router/isis.j2' %} {% include 'router/pim.j2' %} - {% if router_role == 'pe' %} + {% endif %} + {% include 'router/base_static_routes.j2' %} + {% include 'router/bgp.j2' %} + {% if router_role == 'pe' or is_pe_promotion_wf %} {% include 'router/flowspec.j2' %} {% include 'router/ldp.j2' %} {% include 'router/rpki.j2' %}