IGP Configuration Template

SR IGP templates for IOS XR

triangle-exclamation

Jinja2 IGP SR Template

circle-info

A default SRGB for IOS XR is 16000 – 23999.

segment-routing global-block {{ SRGB_START | default("16000") }} {{ SRGB_END | default("23999") }}
!
router isis {{ ISIS_PROCESS | default("1") }}
 address-family ipv4 unicast
  router-id {{ RID_IFACE | default("Loopback0") }}
  metric-style wide
  mpls traffic-eng {{ ISIS_LEVEL | default("level-2-only") }}
  mpls traffic-eng router-id {{ RID_IFACE | default("Loopback0") }}
  segment-routing mpls
{%- if MICROLOOP_AVOIDANCE %}
  microloop avoidance segment-routing
{%- endif %}
{%- if MICROLOOP_AVOIDANCE_DELAY %}
  microloop avoidance rib-update-delay {{ MICROLOOP_AVOIDANCE_DELAY }}
{%- endif %}
{%- if MAPPING_SERVER %}
  segment-routing prefix-sid-map advertise-local
{%- endif %}
 !
 interface {{ RID_IFACE | default("Loopback0") }}
  address-family ipv4 unicast
   prefix-sid index {{ INDEX }}
 !
{%- for IFACE in NNI %}
 interface {{ IFACE.NAME }}
{%-   if TI_LFA %}
  address-family ipv4 unicast
   fast-reroute per-prefix
   fast-reroute per-prefix ti-lfa
{%-   endif %}
 !
{%- endfor %}
!
mpls traffic-eng

Sample Variables

MICROLOOP_AVOIDANCE_DELAY specifies the amount of time the node uses the microloop avoidance policy before updating its forwarding table. The delay-time is in milliseconds. The range is from 1-60000. The default value is 5000.

Notes

MPLS traffic engineering functionality is required on SR node. The node advertises the traffic engineering link attributes in IGP which populate the traffic engineering database (TED) on the head-end. The SR-TE head-end requires the TED to calculate and validate the path of the SR-TE policy.

Segment Routing Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 7.1.xarrow-up-right

Todo

Last updated