IS-IS Flex-Algorithm Configuration

Overview

The IS-IS algorithm historically calculates paths on the network using the SPF algorithm based on the best total shortest link metric (aka the IGP metric) to the destination. The paths are calculated automatically but may not be optimal for all the use cases. Traffic Engineering protocols such as RSVP-TE provide a solution for steering traffic along defined paths. However, they require manual path configurations that, in addition to being complex to maintain, do not allow the paths to be moved dynamically when the network conditions change.

Flex-Algorithm allows new algorithms to run in parallel with the historical algorithm to compute paths based on new constraints dynamically. A Flexible-Algorithm can restrict paths to links from the specific affinities or avoid links from the specific affinities. The metric can use some TE values such as the metric and the delay instead of the IGP metric. Combinations of these constraints are possible.

Up to 128 Flex-Algorithms can co-exist in an IS-IS area. Each one has a numeric identifier and shares the following definitions:

  • the metric type (the default link, TE or, delay metric)

  • the calculation type (the Flex-Algorithm standard only defines the SPF one for the moment but more types will probably be standardized in the future),

  • a set of link constraints to include or exclude a certain given set of links,

  • the prefix-metric flag.

Configuration of a Flex-Algorithm

The requirements to enable a given Flex-Algorithm on all IS-IS routers whose participation in the algorithm is desired are the following:

  • enabling the SR MPLS dataplane,

  • enabling the SR MPLS dataplane for the selected Flex-Algorithm numeric ID,

  • configuring a Node prefix-SID for the selected Flex-Algorithm,

  • configuring and enabling the advertisement of the Flex-Algorithm Definition on a subset of the routers (on a minimum of two for redundancy).

This section describes how to configure a particular Flex-Algorithm with an include-any link constraint. The include-any constraint means that the computed paths must only use the links a given affinity.

Segment Routing basic configuration

This section describes the SR basic configuration step that is necessary before configuring IS-IS Flex-Algorithm.

The below drawing shows an IS-IS SR topology of nine routers, named from rt0 to rt9. Each rtX router has a loopback IP address in the format X.X.X.X, except rt0 which has the 10.10.10.10 IP address. Each loopback has an MPLS prefix SID in the format 2000X.

../../../../_images/setup_no_flex_algo.svg

IS-IS segment routing topology

SR is configured on rt0. Other router configurations are similar.

rt0

rt0 running config# vrf main
rt0 running vrf main# interface physical eth-rt1
rt0 running physical eth0#! ipv4 address 10.1.0.10/24
rt0 running physical eth0#! port pci-b0s4
rt0 running physical eth0# .. ..
rt0 running vrf main# interface physical eth-rt5
rt0 running physical eth0#! ipv4 address 10.5.0.10/24
rt0 running physical eth0#! port pci-b0s5
rt0 running physical eth0# .. ..
rt0 running vrf main# interface loopback loop1
rt0 running loopback loop1# ipv4 address 10.10.10.10/32
rt0 running loopback loop1# .. ..
rt0 running vrf main# routing interface loop1
rt0 running interface loop1# isis area-tag 1
rt0 running interface loop1#! isis ipv4-routing true
rt0 running interface loop1# .. ..
rt0 running vrf main# routing interface eth-rt1
rt0 running interface eth-rt1# isis area-tag 1
rt0 running interface eth-rt1#! isis ipv4-routing true
rt0 running interface eth-rt1# isis network-point-to-point true
rt0 running interface eth-rt1# .. ..
rt0 running vrf main# routing interface eth-rt5
rt0 running interface eth-rt5# isis area-tag 1
rt0 running interface eth-rt5#! isis ipv4-routing true
rt0 running interface eth-rt5# isis network-point-to-point true
rt0 running interface eth-rt5# .. ..
rt0 running vrf main# routing isis instance 1
rt0 running instance 1# area-address 49.0000.0000.0000.1000.00
rt0 running instance 1# is-type level-1
rt0 running instance 1# segment-routing enabled true
rt0 running instance 1# segment-routing msd node-msd 8
rt0 running instance 1# segment-routing label-blocks srgb lower-bound 20000 upper-bound 23000
rt0 running instance 1# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 0

The metrics have been left at the default value. The routes from rt0 and rt9 uses multiple paths:

rt0> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 40, best
  Last update 00:00:04 ago
  * 10.5.0.5, via eth-rt5, label 20009, weight 1
rt1> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 40, best
  Last update 00:00:18 ago
  * 10.12.0.2, via eth-rt2, label 20009, weight 1
  * 10.14.0.4, via eth-rt4, label 20009, weight 1
  * 10.15.0.5, via eth-rt5, label 20009, weight 1
rt2> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 30, best
  Last update 00:00:09 ago
  * 10.23.0.3, via eth-rt3, label 20009, weight 1
  * 10.26.0.6, via eth-rt6, label 20009, weight 1
rt3> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 20, best
  Last update 00:00:09 ago
  * 10.39.0.9, via eth-rt9, label implicit-null, weight 1
rt4> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 30, best
  Last update 00:00:12 ago
  * 10.34.0.3, via eth-rt3, label 20009, weight 1
rt5> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 30, best
  Last update 00:00:11 ago
  * 10.56.0.6, via eth-rt6, label 20009, weight 1
rt6> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 20, best
  Last update 00:00:13 ago
  * 10.69.0.9, via eth-rt9, label implicit-null, weight 1
rt7> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 20, best
  Last update 00:00:12 ago
  * 10.79.0.9, via eth-rt9, label implicit-null, weight 1
rt8> show ipv4-routes to 9.9.9.9
Routing entry for 9.9.9.9/32
  Known via "isis", distance 115, metric 30, best
  Last update 00:00:14 ago
  * 10.78.0.7, via eth-rt7, label 20009, weight 1
../../../../_images/setup_no_flex_algo_to_rt9.svg

Routes to rt9 follow the arrows.

See also

Refer to the Segment Routing chapter for details.

Flex algorithm configuration

The Flex-Algorithm 130 is going to be configured with the following specifications:

  • The Flex-Algorithm 130 is enabled on all routers, except rt4.

  • The Flex-Algorithm Definition is advertised from rt0 and rt9 with the following characteristics:

    • Algorithm ID: 130

    • Metric type: IGP (default value)

    • Include-Any link constraint: affinity blue - bit position 0

    • Priority of the definition: 128 (default value)

  • The link affinity blue is set between:

    • rt0 and rt1

    • rt1 and rt2

    • rt2 and rt3

    • rt3 and rt9

    • rt0 and rt5

    • rt5 and rt6

    • rt6 and rt7

    • rt7 and rt9

../../../../_images/setup_flex_algo_130.svg

Desired topology for Flex-Algorithm 130

Enabling the Flex-Algorithm 130

Configure the SR MPLS dataplane for the Flex-Algorithm 130.

rt0 to rt9 except rt4

rt0 running config# / vrf main routing isis instance 1
rt0 running instance 1# flex-algorithm 130
rt0 running flex-algorithm 130# dataplane sr-mpls

Setting the nodes prefix-SIDs for the Flex-Algorithm 130

The node prefix SIDs are set in the format 2030X on all routers except rt4 which does not participate in the Flex-Algorithm.

rt0

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 130
rt0 running flex-algorithm 130# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 300

rt1 and similarly for all other routers

rt1 running config# / vrf main routing isis instance 1 flex-algorithm 130
rt1 running flex-algorithm 130# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 301

The rt0 node prefix SID value is 20300, which is the sum of SR global block lower-bound value 20000 plus the sid-value of 300.

Displaying Flex-Algorithm information

State of Flex-Algorithms

Show the enabled Flex-Algorithm and its definition.

rt0> show isis flex-algorithm
Area 1: Algorithm 130

 Enabled Data-Planes: SR-MPLS

 Elected and running Flexible-Algorithm Definition:
  Source: 0000.0000.1009
  Priority: 128
  Equal to local: yes
  Local state: enabled
  Calculation type: spf
  Metric type: igp
  Prefix-metric: disabled
  Exclude SRLG: disabled
  Exclude-any admin-group: not-set
  Include-all admin-group: not-set
  Include-any admin-group: 0x00000001
            Bit positions: 0

Nodes participating in a given Flex-Algorithm

Show the participating SR nodes in Flex-Algorithm 130. rt4 is absent as expected.

rt0> show isis segment-routing node flex-algorithm 130
Area 1:
 IS-IS L1 SR-Nodes:

 System ID       SRGB           SRLB           Algorithm      MSD
 ------------------------------------------------------------------
 0000.0000.1000  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1001  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1002  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1003  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1005  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1006  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1007  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1008  20000 - 23999  15000 - 15999  Flex-Algo 130  8
 0000.0000.1009  20000 - 23999  15000 - 15999  Flex-Algo 130  8

 IS-IS L2 SR-Nodes:

Flex-Algorithm information in the LSP database

Show the Flex-Algorithm information from the LSP database.

rt0> show isis database detail
(...)
rt9.00-00                 213   0x00000005  0xd6cd    1090    0/0/0
  Protocols Supported: IPv4
  Area Address: 49.0000
  Hostname: rt9
  TE Router ID: 10.255.9.1
  Router Capability: 10.255.9.1 , D:0, S:0
    Segment Routing: I:1 V:1, Global Block Base: 20000 Range: 4000
    SR Local Block Base: 15000 Range: 1000
    SR Algorithm:
      0: SPF
      130: Flex-Algo
    Node Maximum SID Depth: 8
    Flex-Algo Definition: 130
      Metric-Type: 0
      Calc-Type: 0
      Priority: 128
      Exclude-Any: not-set
      Include-Any: 0x00000001
      Include-All: not-set
      M-Flag: 0
  Extended Reachability: 0000.0000.1003.00 (Metric: 10)
    Adjacency-SID: 15000, Weight: 0, Flags: F:0 B:0, V:1, L:1, S:0, P:0
    Application Specific Link Attributes:
      L flag: 0, SA-Length: 1, UDA-Length: 1
      Standard Applications: 0x10 Flex-Algo
      User Defined Applications: 0x10
      Ext Admin Group: 0x00000001
        Bit positions: 0
  Extended Reachability: 0000.0000.1007.00 (Metric: 10)
    Adjacency-SID: 15001, Weight: 0, Flags: F:0 B:0, V:1, L:1, S:0, P:0
    Application Specific Link Attributes:
      L flag: 0, SA-Length: 1, UDA-Length: 1
      Standard Applications: 0x10 Flex-Algo
      User Defined Applications: 0x10
      Ext Admin Group: 0x00000001
        Bit positions: 0
  IPv4 Interface Address: 10.255.9.1
  Extended IP Reachability: 10.39.0.0/24 (Metric: 10)
  Extended IP Reachability: 10.79.0.0/24 (Metric: 10)
  Extended IP Reachability: 9.9.9.9/32 (Metric: 10)
    Subtlvs:
      SR Prefix-SID Index: 9, Algorithm: 0, Flags: NODE PHP
      SR Prefix-SID Index: 309, Algorithm: 130, Flags: NODE PHP
      Prefix attribute flags: 0x20 Node (N): 1

IS-IS topology information for a given Flex-Algorithm

Show the IS-IS topology for Flex-Algorithm 130. rt4 and rt8 do not appear in the topology. rt4 does not participate in Flex-Algorithm 130 and rt8 has no blue affinity on links.

rt0> show isis topology flex-algorithm 130
Area 1: Algorithm 130
IS-IS paths to level-1 routers that speak IP
Vertex               Type         Metric Next-Hop             Interface Parent
rt0
10.1.0.0/24          IP internal  0                                     rt0(4)
10.5.0.0/24          IP internal  0                                     rt0(4)
10.10.10.10/32       IP internal  0                                     rt0(4)
rt1                  TE-IS        10     rt1                  eth-rt1   rt0(4)
rt5                  TE-IS        10     rt5                  eth-rt5   rt0(4)
rt2                  TE-IS        20     rt1                  eth-rt1   rt1(4)
rt6                  TE-IS        20     rt5                  eth-rt5   rt5(4)
10.1.0.0/24          IP TE        20     rt1                  eth-rt1   rt1(4)
10.12.0.0/24         IP TE        20     rt1                  eth-rt1   rt1(4)
10.14.0.0/24         IP TE        20     rt1                  eth-rt1   rt1(4)
10.15.0.0/24         IP TE        20     rt1                  eth-rt1   rt1(4)
                                         rt5                  eth-rt5   rt5(4)
1.1.1.1/32           IP TE        20     rt1                  eth-rt1   rt1(4)
10.5.0.0/24          IP TE        20     rt5                  eth-rt5   rt5(4)
10.56.0.0/24         IP TE        20     rt5                  eth-rt5   rt5(4)
10.58.0.0/24         IP TE        20     rt5                  eth-rt5   rt5(4)
5.5.5.5/32           IP TE        20     rt5                  eth-rt5   rt5(4)
rt3                  TE-IS        30     rt1                  eth-rt1   rt2(4)
rt7                  TE-IS        30     rt5                  eth-rt5   rt6(4)
10.23.0.0/24         IP TE        30     rt1                  eth-rt1   rt2(4)
10.26.0.0/24         IP TE        30     rt1                  eth-rt1   rt2(4)
                                         rt5                  eth-rt5   rt6(4)
2.2.2.2/32           IP TE        30     rt1                  eth-rt1   rt2(4)
10.67.0.0/24         IP TE        30     rt5                  eth-rt5   rt6(4)
6.6.6.6/32           IP TE        30     rt5                  eth-rt5   rt6(4)
rt9                  TE-IS        40     rt1                  eth-rt1   rt3(4)
                                         rt5                  eth-rt5   rt7(4)
10.34.0.0/24         IP TE        40     rt1                  eth-rt1   rt3(4)
10.37.0.0/24         IP TE        40     rt1                  eth-rt1   rt3(4)
                                         rt5                  eth-rt5   rt7(4)
10.39.0.0/24         IP TE        40     rt1                  eth-rt1   rt3(4)
3.3.3.3/32           IP TE        40     rt1                  eth-rt1   rt3(4)
10.78.0.0/24         IP TE        40     rt5                  eth-rt5   rt7(4)
10.79.0.0/24         IP TE        40     rt5                  eth-rt5   rt7(4)
7.7.7.7/32           IP TE        40     rt5                  eth-rt5   rt7(4)
9.9.9.9/32           IP TE        50     rt1                  eth-rt1   rt9(4)
                                         rt5                  eth-rt5

IS-IS routes information for a given Flex-Algorithm

Show the IS-IS routes for the Flex-Algorithm 130

rt0> show isis route flex-algorithm 130
Area 1: Algorithm 130
IS-IS L1 IPv4 routing table:

 Prefix          Metric  Interface  Nexthop   Label(s)
 ------------------------------------------------------------
 1.1.1.1/32      20      eth-rt1    10.1.0.1  implicit-null
 2.2.2.2/32      30      eth-rt1    10.1.0.1  20302
 3.3.3.3/32      40      eth-rt1    10.1.0.1  20303
 5.5.5.5/32      20      eth-rt5    10.5.0.5  implicit-null
 6.6.6.6/32      30      eth-rt5    10.5.0.5  20306
 7.7.7.7/32      40      eth-rt5    10.5.0.5  20307
 9.9.9.9/32      50      eth-rt1    10.1.0.1  20309
                         eth-rt5    10.5.0.5  20309
 10.1.0.0/24     20      eth-rt1    10.1.0.1  -
 10.5.0.0/24     20      eth-rt5    10.5.0.5  -
 10.10.10.10/32  0       -          -         -
 10.12.0.0/24    20      eth-rt1    10.1.0.1  -
 10.14.0.0/24    20      eth-rt1    10.1.0.1  -
 10.15.0.0/24    20      eth-rt1    10.1.0.1  -
                         eth-rt5    10.5.0.5  -
 10.23.0.0/24    30      eth-rt1    10.1.0.1  -
 10.26.0.0/24    30      eth-rt1    10.1.0.1  -
                         eth-rt5    10.5.0.5  -
 10.34.0.0/24    40      eth-rt1    10.1.0.1  -
 10.37.0.0/24    40      eth-rt1    10.1.0.1  -
                         eth-rt5    10.5.0.5  -
 10.39.0.0/24    40      eth-rt1    10.1.0.1  -
 10.56.0.0/24    20      eth-rt5    10.5.0.5  -
 10.58.0.0/24    20      eth-rt5    10.5.0.5  -
 10.67.0.0/24    30      eth-rt5    10.5.0.5  -
 10.78.0.0/24    40      eth-rt5    10.5.0.5  -
 10.79.0.0/24    40      eth-rt5    10.5.0.5  -

Paths from rt0 to rt9 in Flex-Algorithm 130

The available paths from rt0 to rt9 do not transit by rt4 and rt8 as expected.

rt0> show isis route flex-algorithm 130
Area 1: Algorithm 130
IS-IS L1 IPv4 routing table:

 Prefix          Metric  Interface  Nexthop   Label(s)
 ------------------------------------------------------------
 (...)
 9.9.9.9/32      50      eth-rt1    10.1.0.1  20309
                         eth-rt5    10.5.0.5  20309
 (...)
rt1> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      40      eth-rt2    10.12.0.2  20309
 (...)
rt2> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      30      eth-rt3    10.23.0.3  20309
 (...)
rt3> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      20      eth-rt9    10.39.0.9  implicit-null
 (...)
rt4> show isis route flex-algorithm 130
     < no data >
rt5> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      40      eth-rt6    10.56.0.6  20309
 (...)
rt6> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      30      eth-rt7    10.67.0.7  20309
 (...)
rt7> show isis route flex-algorithm 130
 (...)
 9.9.9.9/32      20      eth-rt9    10.79.0.9  implicit-null
 (...)
rt8> show isis route flex-algorithm 130
 Prefix        Metric  Interface  Nexthop  Label(s)
 ----------------------------------------------------
 8.8.8.8/32    0       -          -        -
 10.48.0.0/24  0       -          -        -
 10.58.0.0/24  0       -          -        -
 10.78.0.0/24  0       -          -        -
../../../../_images/setup_flex_algo_130_to_rt9.svg

Routes on Flex-Algorithm 130 to rt9 follow the arrows.

Other configuration options

Exclude-any constraints

The exclude-any constraint means that the compute paths must avoid any link with the specified affinities.

The Flex-Algorithm 129 is going to be configured with the following specifications:

  • The Flex-Algorithm 129 is enabled on all routers, except rt4.

  • The Flex-Algorithm Definition is advertised from rt0 and rt9 with the following characteristics:

    • Algorithm ID: 129

    • Metric type: IGP (default value)

    • Exclude-Any link constraint: affinity red - bit position 1

    • Priority of the definition: 128 (default value)

  • The link affinity red is added between:

    • rt5 and rt6

    • rt6 and rt9

../../../../_images/setup_flex_algo_129.svg

Desired topology for Flex-Algorithm 129

rt5, rt6 and rt9

rt1 running config# / routing traffic-engineering affinity-map red bit-position 1

rt5

rt5 running config# / vrf main routing interface eth-rt6 traffic-engineering affinity-map red

rt6

rt6 running config# / vrf main routing interface eth-rt5 traffic-engineering affinity-map red
rt6 running config# / vrf main routing interface eth-rt9 traffic-engineering affinity-map red

rt9

rt6 running config# / vrf main routing interface eth-rt6 traffic-engineering affinity-map red

rt0 and similarly for all other routers

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 129
rt0 running flex-algorithm 129# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 200

rt0 to rt9 except rt4

rt0 running config# / vrf main routing isis instance 1
rt0 running instance 1# flex-algorithm 129
rt0 running flex-algorithm 129# dataplane sr-mpls

rt0 and rt9

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 129
rt0 running flex-algorithm 129# definition advertise true
rt0 running flex-algorithm 129# definition affinity exclude-any red

The winning FAD is coming from rt9.

rt0> show isis flex-algorithm 129
Area 1: Algorithm 129

 Enabled Data-Planes: SR-MPLS

 Elected and running Flexible-Algorithm Definition:
  Source: 0000.0000.1009
  Priority: 128
  Equal to local: yes
  Local state: enabled
  Calculation type: spf
  Metric type: igp
  Prefix-metric: disabled
  Exclude SRLG: disabled
  Exclude-any admin-group: 0x00000002
            Bit positions: 1
  Include-all admin-group: not-set
  Include-any admin-group: not-set
../../../../_images/setup_flex_algo_129_to_rt9.svg

Routes on Flex-Algorithm 129 to rt9 follow the arrows.

Include-all constraints

The include-all constraint means that the compute paths must only choose the links that include all the specified affinities.

The Flex-Algorithm 128 is going to be configured with the following specifications:

  • The Flex-Algorithm 128 is enabled on all routers, except rt4.

  • The Flex-Algorithm Definition is advertised from rt0 and rt9 with the following characteristics:

    • Algorithm ID: 128

    • Metric type: IGP (default value)

    • Include-All link constraint:

      • affinity blue - bit position 0

      • affinity green - bit position 2

  • The link affinity green is added between:

    • rt0 and rt5

    • rt5 and rt6

    • rt6 and rt7

    • rt7 and rt9

../../../../_images/setup_flex_algo_128.svg

Desired topology for Flex-Algorithm 128

rt0, rt5, rt6, rt7 and rt9

rt0 running config# / routing traffic-engineering affinity-map green bit-position 2

rt0

rt0 running config# / vrf main routing interface eth-rt5 traffic-engineering affinity-map green

rt6

rt6 running config# / vrf main routing interface eth-rt5 traffic-engineering affinity-map green
rt6 running config# / vrf main routing interface eth-rt7 traffic-engineering affinity-map green

rt7

rt7 running config# / vrf main routing interface eth-rt6 traffic-engineering affinity-map green
rt7 running config# / vrf main routing interface eth-rt9 traffic-engineering affinity-map green

rt5

rt5 running config# / vrf main routing interface eth-rt0 traffic-engineering affinity-map green
rt5 running config# / vrf main routing interface eth-rt6 traffic-engineering affinity-map green

rt9

rt9 running config# / vrf main routing interface eth-rt7 traffic-engineering affinity-map green

rt0 and similarly for all other routers

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 128
rt0 running flex-algorithm 128# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 100

rt0 to rt9 except rt4

rt0 running config# / vrf main routing isis instance 1
rt0 running instance 1# flex-algorithm 128
rt0 running flex-algorithm 128# dataplane sr-mpls

rt0 and rt9

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 128
rt0 running flex-algorithm 128# definition advertise true
rt0 running flex-algorithm 128# definition affinity include-all blue
rt0 running flex-algorithm 128# definition affinity include-all green

The winning FAD is coming from rt9.

rt0> show isis flex-algorithm 128
Area 1: Algorithm 128

 Enabled Data-Planes: SR-MPLS

 Elected and running Flexible-Algorithm Definition:
  Source: 0000.0000.1009
  Priority: 128
  Equal to local: yes
  Local state: enabled
  Calculation type: spf
  Metric type: igp
  Prefix-metric: disabled
  Exclude SRLG: disabled
  Exclude-any admin-group: not-set
  Include-all admin-group: 0x00000005
            Bit positions: 0, 3
  Include-any admin-group: not-set
../../../../_images/setup_flex_algo_128_to_rt9.svg

Routes on Flex-Algorithm 128 to rt9 follow the arrows.

Traffic-Engineering metrics

The TE metric is administratively assigned and can be used to present a differently weighted topology to TE SPF calculations. A Flex-Algorithm can use the TE metrics instead of the default IGP one to compute the paths.

The Flex-Algorithm 131 is going to be configured with the following specifications:

  • The Flex-Algorithm 131 is enabled on all routers.

  • The Flex-Algorithm Definition is advertised from rt0 and rt9 with the following characteristics:

    • Algorithm ID: 131

    • Metric type: TE metric

rt0 and similarly for all other routers

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 131
rt0 running flex-algorithm 131# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 400
rt0 running flex-algorithm 131# dataplane sr-mpls

rt0 and rt9

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 131
rt0 running flex-algorithm 131# definition advertise true
rt0 running flex-algorithm 131# metric-type te

No TE metrics are configured yet on IS-IS interfaces. When no such values are provided, the SPF algorithm does not use the IGP metric instead nor discards the link from the SPF tree. It utilizes for these links the default cost value of 2^24 - 1 (that is 16777215), which provides paths with a high total cost that can be selected if no better costs exist.

rt0> show isis topology flex-algorithm 131
Area 1: Algorithm 131
IS-IS paths to level-1 routers that speak IP
Vertex               Type         Metric Next-Hop             Interface Parent
rt0
10.1.0.0/24          IP internal  0                                     rt0(4)
10.5.0.0/24          IP internal  0                                     rt0(4)
10.10.10.10/32       IP internal  0                                     rt0(4)
rt1                  TE-IS        16777215 rt1                  eth-rt1   rt0(4)
rt5                  TE-IS        16777215 rt5                  eth-rt5   rt0(4)
10.1.0.0/24          IP TE        16777225 rt1                  eth-rt1   rt1(4)
10.12.0.0/24         IP TE        16777225 rt1                  eth-rt1   rt1(4)
10.14.0.0/24         IP TE        16777225 rt1                  eth-rt1   rt1(4)
10.15.0.0/24         IP TE        16777225 rt1                  eth-rt1   rt1(4)
                                         rt5                  eth-rt5   rt5(4)
1.1.1.1/32           IP TE        16777225 rt1                  eth-rt1   rt1(4)
10.5.0.0/24          IP TE        16777225 rt5                  eth-rt5   rt5(4)
10.56.0.0/24         IP TE        16777225 rt5                  eth-rt5   rt5(4)
10.58.0.0/24         IP TE        16777225 rt5                  eth-rt5   rt5(4)
5.5.5.5/32           IP TE        16777225 rt5                  eth-rt5   rt5(4)
rt8                  TE-IS        16777315 rt5                  eth-rt5   rt5(4)
10.48.0.0/24         IP TE        16777325 rt5                  eth-rt5   rt8(4)
10.78.0.0/24         IP TE        16777325 rt5                  eth-rt5   rt8(4)
8.8.8.8/32           IP TE        16777325 rt5                  eth-rt5   rt8(4)
rt7                  TE-IS        16778315 rt5                  eth-rt5   rt8(4)
10.37.0.0/24         IP TE        16778325 rt5                  eth-rt5   rt7(4)
10.67.0.0/24         IP TE        16778325 rt5                  eth-rt5   rt7(4)
10.79.0.0/24         IP TE        16778325 rt5                  eth-rt5   rt7(4)
7.7.7.7/32           IP TE        16778325 rt5                  eth-rt5   rt7(4)
rt2                  TE-IS        33554430 rt1                  eth-rt1   rt1(4)
rt4                  TE-IS        33554430 rt1                  eth-rt1   rt1(4)
rt6                  TE-IS        33554430 rt5                  eth-rt5   rt5(4)
10.23.0.0/24         IP TE        33554440 rt1                  eth-rt1   rt2(4)
10.26.0.0/24         IP TE        33554440 rt1                  eth-rt1   rt2(4)
                                         rt5                  eth-rt5   rt6(4)
2.2.2.2/32           IP TE        33554440 rt1                  eth-rt1   rt2(4)
10.34.0.0/24         IP TE        33554440 rt1                  eth-rt1   rt4(4)
4.4.4.4/32           IP TE        33554440 rt1                  eth-rt1   rt4(4)
10.69.0.0/24         IP TE        33554440 rt5                  eth-rt5   rt6(4)
6.6.6.6/32           IP TE        33554440 rt5                  eth-rt5   rt6(4)
rt9                  TE-IS        33554480 rt5                  eth-rt5   rt6(4)
10.39.0.0/24         IP TE        33554490 rt5                  eth-rt5   rt9(4)
9.9.9.9/32           IP TE        33554490 rt5                  eth-rt5   rt9(4)
rt3                  TE-IS        33554530 rt1                  eth-rt1   rt2(4)
3.3.3.3/32           IP TE        33554540 rt1                  eth-rt1   rt3(4)

TE metrics are now set to the values of the following diagram:

../../../../_images/setup_flex_algo_131.svg

Desired topology for Flex-Algorithm 131. Link values are the TE metric. No value means that no TE metric is advertised for the link.

For example, the TE metric is set on rt0 eth-rt1 and eth-rt5 according to the diagram.

rt0 and similarly for all other routers

rt0 running config# / vrf main routing interface eth-rt1 traffic-engineering
rt0 running traffic-engineering# metric 100
rt0 running traffic-engineering# /
rt0 running config# / vrf main routing interface eth-rt5 traffic-engineering
rt0 running traffic-engineering# metric 1000
rt0> show isis topology flex-algorithm 131
Area 1: Algorithm 131
IS-IS paths to level-1 routers that speak IP
Vertex               Type         Metric Next-Hop             Interface Parent
rt0
10.1.0.0/24          IP internal  0                                     rt0(4)
10.5.0.0/24          IP internal  0                                     rt0(4)
10.10.10.10/32       IP internal  0                                     rt0(4)
rt1                  TE-IS        100    rt1                  eth-rt1   rt0(4)
10.1.0.0/24          IP TE        110    rt1                  eth-rt1   rt1(4)
10.12.0.0/24         IP TE        110    rt1                  eth-rt1   rt1(4)
10.14.0.0/24         IP TE        110    rt1                  eth-rt1   rt1(4)
10.15.0.0/24         IP TE        110    rt1                  eth-rt1   rt1(4)
1.1.1.1/32           IP TE        110    rt1                  eth-rt1   rt1(4)
rt2                  TE-IS        200    rt1                  eth-rt1   rt1(4)
10.23.0.0/24         IP TE        210    rt1                  eth-rt1   rt2(4)
10.26.0.0/24         IP TE        210    rt1                  eth-rt1   rt2(4)
2.2.2.2/32           IP TE        210    rt1                  eth-rt1   rt2(4)
rt6                  TE-IS        250    rt1                  eth-rt1   rt2(4)
10.56.0.0/24         IP TE        260    rt1                  eth-rt1   rt6(4)
10.67.0.0/24         IP TE        260    rt1                  eth-rt1   rt6(4)
10.69.0.0/24         IP TE        260    rt1                  eth-rt1   rt6(4)
6.6.6.6/32           IP TE        260    rt1                  eth-rt1   rt6(4)
rt3                  TE-IS        300    rt1                  eth-rt1   rt2(4)
rt9                  TE-IS        300    rt1                  eth-rt1   rt6(4)
10.34.0.0/24         IP TE        310    rt1                  eth-rt1   rt3(4)
10.37.0.0/24         IP TE        310    rt1                  eth-rt1   rt3(4)
10.39.0.0/24         IP TE        310    rt1                  eth-rt1   rt3(4)
                                                                        rt9(4)
3.3.3.3/32           IP TE        310    rt1                  eth-rt1   rt3(4)
10.79.0.0/24         IP TE        310    rt1                  eth-rt1   rt9(4)
9.9.9.9/32           IP TE        310    rt1                  eth-rt1   rt9(4)
rt5                  TE-IS        1000   rt5                  eth-rt5   rt0(4)
10.5.0.0/24          IP TE        1010   rt5                  eth-rt5   rt5(4)
10.58.0.0/24         IP TE        1010   rt5                  eth-rt5   rt5(4)
5.5.5.5/32           IP TE        1010   rt5                  eth-rt5   rt5(4)
rt8                  TE-IS        1100   rt5                  eth-rt5   rt5(4)
10.48.0.0/24         IP TE        1110   rt5                  eth-rt5   rt8(4)
10.78.0.0/24         IP TE        1110   rt5                  eth-rt5   rt8(4)
8.8.8.8/32           IP TE        1110   rt5                  eth-rt5   rt8(4)
rt7                  TE-IS        1300   rt1                  eth-rt1   rt9(4)
7.7.7.7/32           IP TE        1310   rt1                  eth-rt1   rt7(4)
rt4                  TE-IS        16777315 rt1                  eth-rt1   rt1(4)
4.4.4.4/32           IP TE        16777325 rt1                  eth-rt1   rt4(4)

rt0> show isis route flex-algorithm 131
Area 1: Algorithm 131
IS-IS L1 IPv4 routing table:

 Prefix          Metric    Interface  Nexthop   Label(s)
 --------------------------------------------------------------
 1.1.1.1/32      110       eth-rt1    10.1.0.1  implicit-null
 2.2.2.2/32      210       eth-rt1    10.1.0.1  20402
 3.3.3.3/32      310       eth-rt1    10.1.0.1  20403
 4.4.4.4/32      16777325  eth-rt1    10.1.0.1  20404
 5.5.5.5/32      1010      eth-rt5    10.5.0.5  implicit-null
 6.6.6.6/32      260       eth-rt1    10.1.0.1  20406
 7.7.7.7/32      1310      eth-rt1    10.1.0.1  20407
 8.8.8.8/32      1110      eth-rt5    10.5.0.5  20408
 9.9.9.9/32      310       eth-rt1    10.1.0.1  20409
 10.1.0.0/24     110       eth-rt1    10.1.0.1  -
 10.5.0.0/24     1010      eth-rt5    10.5.0.5  -
 10.10.10.10/32  0         -          -         -
 10.12.0.0/24    110       eth-rt1    10.1.0.1  -
 10.14.0.0/24    110       eth-rt1    10.1.0.1  -
 10.15.0.0/24    110       eth-rt1    10.1.0.1  -
 10.23.0.0/24    210       eth-rt1    10.1.0.1  -
 10.26.0.0/24    210       eth-rt1    10.1.0.1  -
 10.34.0.0/24    310       eth-rt1    10.1.0.1  -
 10.37.0.0/24    310       eth-rt1    10.1.0.1  -
 10.39.0.0/24    310       eth-rt1    10.1.0.1  -
 10.48.0.0/24    1110      eth-rt5    10.5.0.5  -
 10.56.0.0/24    260       eth-rt1    10.1.0.1  -
 10.58.0.0/24    1010      eth-rt5    10.5.0.5  -
 10.67.0.0/24    260       eth-rt1    10.1.0.1  -
 10.69.0.0/24    260       eth-rt1    10.1.0.1  -
 10.78.0.0/24    1110      eth-rt5    10.5.0.5  -
 10.79.0.0/24    310       eth-rt1    10.1.0.1  -
../../../../_images/setup_flex_algo_131_to_rt9.svg

Routes on Flex-Algorithm 131 to rt9 follow the arrows.

Traffic-Engineering delay metrics

The value of link delay can be used as a weight to compute the paths of a specific Flex-Algorithm so that the routes use the paths with the shortest delay.

The Flex-Algorithm 132 is going to be configured with the following specifications:

  • The Flex-Algorithm 132 is enabled on all routers.

  • The Flex-Algorithm Definition is advertised from rt0 and rt9 with the following characteristics:

    • Algorithm ID: 132

    • Metric type: delay

rt0 and similarly for all other routers

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 132
rt0 running flex-algorithm 132# segment-routing prefix-sid-map 10.10.10.10/32 sid-value 500
rt0 running flex-algorithm 132# dataplane sr-mpls

rt0 and rt9

rt0 running config# / vrf main routing isis instance 1 flex-algorithm 132
rt0 running flex-algorithm 132# definition advertise true
rt0 running flex-algorithm 132# metric-type delay

Routers advertise the delay values within the “Extended IS Reachability” TLV according to RFC 8570 and are considered as a TE metric extension. This TLV carries the average, minimum and maximum link delay. However, a Flex-Algorithm with delay as the metric type only utilizes the minimum link delay value for the path computation.

Delays are now set to the values of the following diagram:

../../../../_images/setup_flex_algo_132.svg

Desired topology for Flex-Algorithm 132. Link values are the minimum link delay. No value means that no delay values are advertised for the link.

For example, the minimum delay value is set on rt0 eth-rt1 and eth-rt5 according to the diagram. The configured values are converted from milliseconds to microseconds.

rt0 and similarly for all other routers

rt0 running config# / vrf main routing interface eth-rt1 traffic-engineering
rt0 running traffic-engineering# delay average 150000 minimum 100000 maximum 200000
rt0 running traffic-engineering# /
rt0 running config# / vrf main routing interface eth-rt5 traffic-engineering
rt0 running traffic-engineering# delay average 150000 minimum 100000 maximum 200000

The configured delay values should be defined as follows:

  • minimum: the lowest measured delay on the link. It corresponds to the time for a packet to be received by the remote router after its emission when the link is not overloaded.

  • maximum: the highest measured delay on the link. It corresponds to the time for a packet to be received by the remote router after its emission when the link is overloaded.

  • average: the average measured delay on the link. Its value must be superior to the minimum and inferior to the maximum one.

When a router has no information about the minimum delay of a particular link or when it gets a zero minimum delay value, it assigns to the link a delay value of 2^24 - 1 microseconds (that is 16777215 microseconds).

rt0> show isis topology flex-algorithm 132
Area 1: Algorithm 132
IS-IS paths to level-1 routers that speak IP
Vertex               Type         Metric Next-Hop             Interface Parent
rt0
10.1.0.0/24          IP internal  0                                     rt0(4)
10.5.0.0/24          IP internal  0                                     rt0(4)
10.10.10.10/32       IP internal  0                                     rt0(4)
rt1                  TE-IS        10000  rt1                  eth-rt1   rt0(4)
10.1.0.0/24          IP TE        10010  rt1                  eth-rt1   rt1(4)
10.12.0.0/24         IP TE        10010  rt1                  eth-rt1   rt1(4)
10.14.0.0/24         IP TE        10010  rt1                  eth-rt1   rt1(4)
10.15.0.0/24         IP TE        10010  rt1                  eth-rt1   rt1(4)
1.1.1.1/32           IP TE        10010  rt1                  eth-rt1   rt1(4)
rt2                  TE-IS        20000  rt1                  eth-rt1   rt1(4)
10.23.0.0/24         IP TE        20010  rt1                  eth-rt1   rt2(4)
10.26.0.0/24         IP TE        20010  rt1                  eth-rt1   rt2(4)
2.2.2.2/32           IP TE        20010  rt1                  eth-rt1   rt2(4)
rt6                  TE-IS        25000  rt1                  eth-rt1   rt2(4)
10.56.0.0/24         IP TE        25010  rt1                  eth-rt1   rt6(4)
10.67.0.0/24         IP TE        25010  rt1                  eth-rt1   rt6(4)
10.69.0.0/24         IP TE        25010  rt1                  eth-rt1   rt6(4)
6.6.6.6/32           IP TE        25010  rt1                  eth-rt1   rt6(4)
rt3                  TE-IS        30000  rt1                  eth-rt1   rt2(4)
rt9                  TE-IS        30000  rt1                  eth-rt1   rt6(4)
10.34.0.0/24         IP TE        30010  rt1                  eth-rt1   rt3(4)
10.37.0.0/24         IP TE        30010  rt1                  eth-rt1   rt3(4)
10.39.0.0/24         IP TE        30010  rt1                  eth-rt1   rt3(4)
                                                                        rt9(4)
3.3.3.3/32           IP TE        30010  rt1                  eth-rt1   rt3(4)
10.79.0.0/24         IP TE        30010  rt1                  eth-rt1   rt9(4)
9.9.9.9/32           IP TE        30010  rt1                  eth-rt1   rt9(4)
rt5                  TE-IS        100000 rt5                  eth-rt5   rt0(4)
10.5.0.0/24          IP TE        100010 rt5                  eth-rt5   rt5(4)
10.58.0.0/24         IP TE        100010 rt5                  eth-rt5   rt5(4)
5.5.5.5/32           IP TE        100010 rt5                  eth-rt5   rt5(4)
rt8                  TE-IS        110000 rt5                  eth-rt5   rt5(4)
10.48.0.0/24         IP TE        110010 rt5                  eth-rt5   rt8(4)
10.78.0.0/24         IP TE        110010 rt5                  eth-rt5   rt8(4)
8.8.8.8/32           IP TE        110010 rt5                  eth-rt5   rt8(4)
rt7                  TE-IS        130000 rt1                  eth-rt1   rt9(4)
7.7.7.7/32           IP TE        130010 rt1                  eth-rt1   rt7(4)
rt4                  TE-IS        16787215 rt1                  eth-rt1   rt1(4)
4.4.4.4/32           IP TE        16787225 rt1                  eth-rt1   rt4(4)

rt0> show isis route flex-algorithm 132
Area 1: Algorithm 132
IS-IS L1 IPv4 routing table:

 Prefix          Metric    Interface  Nexthop   Label(s)
 --------------------------------------------------------------
 1.1.1.1/32      10010     eth-rt1    10.1.0.1  implicit-null
 2.2.2.2/32      20010     eth-rt1    10.1.0.1  20502
 3.3.3.3/32      30010     eth-rt1    10.1.0.1  20503
 4.4.4.4/32      16787225  eth-rt1    10.1.0.1  20504
 5.5.5.5/32      100010    eth-rt5    10.5.0.5  implicit-null
 6.6.6.6/32      25010     eth-rt1    10.1.0.1  20506
 7.7.7.7/32      130010    eth-rt1    10.1.0.1  20507
 8.8.8.8/32      110010    eth-rt5    10.5.0.5  20508
 9.9.9.9/32      30010     eth-rt1    10.1.0.1  20509
 10.1.0.0/24     10010     eth-rt1    10.1.0.1  -
 10.5.0.0/24     100010    eth-rt5    10.5.0.5  -
 10.10.10.10/32  0         -          -         -
 10.12.0.0/24    10010     eth-rt1    10.1.0.1  -
 10.14.0.0/24    10010     eth-rt1    10.1.0.1  -
 10.15.0.0/24    10010     eth-rt1    10.1.0.1  -
 10.23.0.0/24    20010     eth-rt1    10.1.0.1  -
 10.26.0.0/24    20010     eth-rt1    10.1.0.1  -
 10.34.0.0/24    30010     eth-rt1    10.1.0.1  -
 10.37.0.0/24    30010     eth-rt1    10.1.0.1  -
 10.39.0.0/24    30010     eth-rt1    10.1.0.1  -
 10.48.0.0/24    110010    eth-rt5    10.5.0.5  -
 10.56.0.0/24    25010     eth-rt1    10.1.0.1  -
 10.58.0.0/24    100010    eth-rt5    10.5.0.5  -
 10.67.0.0/24    25010     eth-rt1    10.1.0.1  -
 10.69.0.0/24    25010     eth-rt1    10.1.0.1  -
 10.78.0.0/24    110010    eth-rt5    10.5.0.5  -
 10.79.0.0/24    30010     eth-rt1    10.1.0.1  -
../../../../_images/setup_flex_algo_132_to_rt9.svg

Routes on Flex-Algorithm 132 to rt9 follow the arrows.

Fast-reroute

Fast-reroute (aka LFA) can benefit to Flex-Algorithm as well. The classic LFA or TI-LFA configuration enables fast-reroute for the default and all running Flex-Algorithms. Enabling TI-LFA is preferred over LFA because it can pre-compute all possible backup paths. Configuring TI-LFA is no more complex than configuring LFA when an SR dataplane is already configured.

TI-LFA is enabled on all IS-IS interfaces except loopback interfaces.

rt0 and similarly for all other routers

rt0 running config# / vrf main routing interface eth-rt1 isis fast-reroute ti-lfa level-1 enabled true
rt0 running config# / vrf main routing interface eth-rt5 isis fast-reroute ti-lfa level-1 enabled true
rt0> show isis route backup algorithm 131
Area 1: Algorithm 131
IS-IS L1 IPv4 routing table:

 Prefix        Metric    Interface  Nexthop   Label(s)
 ----------------------------------------------------------
 1.1.1.1/32    3310      eth-rt5    10.5.0.5  20407/20401
 2.2.2.2/32    3210      eth-rt5    10.5.0.5  20407/20402
 3.3.3.3/32    3210      eth-rt5    10.5.0.5  20407/20403
 4.4.4.4/32    16778325  eth-rt5    10.5.0.5  20404
 5.5.5.5/32    3310      eth-rt1    10.1.0.1  20407/20405
 6.6.6.6/32    3160      eth-rt5    10.5.0.5  20407/20406
 7.7.7.7/32    2110      eth-rt5    10.5.0.5  20407
 8.8.8.8/32    2310      eth-rt1    10.1.0.1  20407/20408
 9.9.9.9/32    3110      eth-rt5    10.5.0.5  20407/20409
 10.1.0.0/24   3310      eth-rt5    10.5.0.5  20407
 10.5.0.0/24   3310      eth-rt1    10.1.0.1  20407
 10.12.0.0/24  3210      eth-rt5    10.5.0.5  20407
 10.14.0.0/24  3310      eth-rt5    10.5.0.5  20407
 10.15.0.0/24  1010      eth-rt5    10.5.0.5  -
 10.23.0.0/24  3210      eth-rt5    10.5.0.5  20407
 10.26.0.0/24  3160      eth-rt5    10.5.0.5  20407
 10.34.0.0/24  3210      eth-rt5    10.5.0.5  20407
 10.37.0.0/24  2110      eth-rt5    10.5.0.5  -
 10.39.0.0/24  3110      eth-rt5    10.5.0.5  20407
 10.48.0.0/24  2310      eth-rt1    10.1.0.1  20407
 10.56.0.0/24  1010      eth-rt5    10.5.0.5  -
 10.58.0.0/24  2310      eth-rt1    10.1.0.1  20407
 10.67.0.0/24  2110      eth-rt5    10.5.0.5  -
 10.69.0.0/24  3110      eth-rt5    10.5.0.5  20407
 10.78.0.0/24  1310      eth-rt1    10.1.0.1  -
 10.79.0.0/24  2110      eth-rt5    10.5.0.5  -

See also

Refer to the Fast-Reroute chapter for details.

Using the Flex-Algorithm routes in the FIB

The routes from Flex-Algorithm are not installed into the FIB unless Flex-Algorithm Segment-Routing Traffic Engineering is configured.

Full rt0 to rt9 configuration

The examples of this page use the below configurations.

rt0

/ system hostname rt0

/ vrf main interface physical eth-rt1 ipv4 address 10.1.0.10/24
/ vrf main interface physical eth-rt1 port pci-b0s4

/ vrf main interface physical eth-rt5 ipv4 address 10.5.0.10/24
/ vrf main interface physical eth-rt5 port pci-b0s5

/ vrf main interface loopback loop1 ipv4 address 10.10.10.10/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt1 isis area-tag 1
/ vrf main routing interface eth-rt1 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt1 isis ipv4-routing true
/ vrf main routing interface eth-rt1 isis network-point-to-point true
/ vrf main routing interface eth-rt1 traffic-engineering metric 100
/ vrf main routing interface eth-rt1 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt5 isis area-tag 1
/ vrf main routing interface eth-rt5 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt5 isis ipv4-routing true
/ vrf main routing interface eth-rt5 isis network-point-to-point true
/ vrf main routing interface eth-rt5 traffic-engineering metric 1000
/ vrf main routing interface eth-rt5 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1000.00

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 0

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map red bit-position 1
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing interface eth-rt1 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt5 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt5 traffic-engineering affinity-map green

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 500
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 400
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 300
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 200
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 10.10.10.10/32 sid-value 100

/ vrf main routing isis instance 1 flex-algorithm 132 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 132 definition metric-type delay
/ vrf main routing isis instance 1 flex-algorithm 132 definition prefix-metric false

/ vrf main routing isis instance 1 flex-algorithm 131 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 131 definition metric-type te
/ vrf main routing isis instance 1 flex-algorithm 131 definition prefix-metric false

/ vrf main routing isis instance 1 flex-algorithm 130 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 130 definition affinity include-any blue

/ vrf main routing isis instance 1 flex-algorithm 129 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 129 definition affinity exclude-any red

/ vrf main routing isis instance 1 flex-algorithm 128 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 128 definition affinity include-all blue
/ vrf main routing isis instance 1 flex-algorithm 128 definition affinity include-all green

rt1

/ system hostname rt1

/ vrf main interface physical eth-rt0 ipv4 address 10.1.0.1/24
/ vrf main interface physical eth-rt0 port pci-b0s4

/ vrf main interface physical eth-rt2 ipv4 address 10.12.0.1/24
/ vrf main interface physical eth-rt2 port pci-b0s5

/ vrf main interface physical eth-rt4 ipv4 address 10.14.0.1/24
/ vrf main interface physical eth-rt4 port pci-b0s6

/ vrf main interface physical eth-rt5 ipv4 address 10.15.0.1/24
/ vrf main interface physical eth-rt5 port pci-b0s7

/ vrf main interface loopback loop1 ipv4 address 1.1.1.1/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing interface eth-rt0 isis area-tag 1
/ vrf main routing interface eth-rt0 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt0 isis ipv4-routing true
/ vrf main routing interface eth-rt0 isis network-point-to-point true
/ vrf main routing interface eth-rt0 traffic-engineering metric 100
/ vrf main routing interface eth-rt0 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt2 isis area-tag 1
/ vrf main routing interface eth-rt2 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt2 isis ipv4-routing true
/ vrf main routing interface eth-rt2 isis network-point-to-point true
/ vrf main routing interface eth-rt2 traffic-engineering metric 100
/ vrf main routing interface eth-rt2 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt4 isis area-tag 1
/ vrf main routing interface eth-rt4 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt4 isis ipv4-routing true
/ vrf main routing interface eth-rt4 isis network-point-to-point true

/ vrf main routing interface eth-rt5 isis area-tag 1
/ vrf main routing interface eth-rt5 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt5 isis ipv4-routing true
/ vrf main routing interface eth-rt5 isis network-point-to-point true

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1001.00

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 1

/ routing traffic-engineering affinity-map blue bit-position 0

/ vrf main routing interface eth-rt0 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt2 traffic-engineering affinity-map blue

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 501
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 401
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 301
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 201
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 1.1.1.1/32 sid-value 101

rt2

/ system hostname rt2

/ vrf main interface physical eth-rt1 ipv4 address 10.12.0.2/24
/ vrf main interface physical eth-rt1 port pci-b0s4

/ vrf main interface physical eth-rt3 ipv4 address 10.23.0.2/24
/ vrf main interface physical eth-rt3 port pci-b0s5

/ vrf main interface physical eth-rt6 ipv4 address 10.26.0.2/24
/ vrf main interface physical eth-rt6 port pci-b0s6

/ vrf main interface loopback loop1 ipv4 address 2.2.2.2/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt1 isis area-tag 1
/ vrf main routing interface eth-rt1 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt1 isis ipv4-routing true
/ vrf main routing interface eth-rt1 isis network-point-to-point true
/ vrf main routing interface eth-rt1 traffic-engineering metric 100
/ vrf main routing interface eth-rt1 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt3 isis area-tag 1
/ vrf main routing interface eth-rt3 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt3 isis ipv4-routing true
/ vrf main routing interface eth-rt3 isis network-point-to-point true
/ vrf main routing interface eth-rt3 traffic-engineering metric 100
/ vrf main routing interface eth-rt3 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt6 isis area-tag 1
/ vrf main routing interface eth-rt6 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt6 isis ipv4-routing true
/ vrf main routing interface eth-rt6 isis network-point-to-point true
/ vrf main routing interface eth-rt6 traffic-engineering metric 50
/ vrf main routing interface eth-rt6 traffic-engineering delay average 7500 minimum 5000 maximum 10000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1002.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 2

/ routing traffic-engineering affinity-map blue bit-position 0

/ vrf main routing interface eth-rt1 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt3 traffic-engineering affinity-map blue

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 502
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 402
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 302
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 202
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 2.2.2.2/32 sid-value 102

rt3

/ system hostname rt3

/ vrf main interface physical eth-rt2 ipv4 address 10.23.0.3/24
/ vrf main interface physical eth-rt2 port pci-b0s4

/ vrf main interface physical eth-rt4 ipv4 address 10.34.0.3/24
/ vrf main interface physical eth-rt4 port pci-b0s5

/ vrf main interface physical eth-rt7 ipv4 address 10.37.0.3/24
/ vrf main interface physical eth-rt7 port pci-b0s6

/ vrf main interface physical eth-rt9 ipv4 address 10.39.0.3/24
/ vrf main interface physical eth-rt9 port pci-b0s7

/ vrf main interface loopback loop1 ipv4 address 3.3.3.3/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt2 isis area-tag 1
/ vrf main routing interface eth-rt2 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt2 isis ipv4-routing true
/ vrf main routing interface eth-rt2 isis network-point-to-point true
/ vrf main routing interface eth-rt2 traffic-engineering metric 100
/ vrf main routing interface eth-rt2 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt4 isis area-tag 1
/ vrf main routing interface eth-rt4 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt4 isis ipv4-routing true
/ vrf main routing interface eth-rt4 isis network-point-to-point true

/ vrf main routing interface eth-rt7 isis area-tag 1
/ vrf main routing interface eth-rt7 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt7 isis ipv4-routing true
/ vrf main routing interface eth-rt7 isis network-point-to-point true

/ vrf main routing interface eth-rt9 isis area-tag 1
/ vrf main routing interface eth-rt9 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt9 isis ipv4-routing true
/ vrf main routing interface eth-rt9 isis network-point-to-point true
/ vrf main routing interface eth-rt9 traffic-engineering metric 100
/ vrf main routing interface eth-rt9 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1003.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 3

/ routing traffic-engineering affinity-map blue bit-position 0

/ vrf main routing interface eth-rt9 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt2 traffic-engineering affinity-map blue

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 503
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 403
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 303
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 203
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 3.3.3.3/32 sid-value 103

rt4

/ system hostname rt4

/ vrf main interface physical eth-rt1 ipv4 address 10.14.0.4/24
/ vrf main interface physical eth-rt1 port pci-b0s4

/ vrf main interface physical eth-rt3 ipv4 address 10.34.0.4/24
/ vrf main interface physical eth-rt3 port pci-b0s5

/ vrf main interface physical eth-rt8 ipv4 address 10.48.0.4/24
/ vrf main interface physical eth-rt8 port pci-b0s6

/ vrf main interface loopback loop1 ipv4 address 4.4.4.4/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt1 isis area-tag 1
/ vrf main routing interface eth-rt1 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt1 isis ipv4-routing true
/ vrf main routing interface eth-rt1 isis network-point-to-point true

/ vrf main routing interface eth-rt3 isis area-tag 1
/ vrf main routing interface eth-rt3 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt3 isis ipv4-routing true
/ vrf main routing interface eth-rt3 isis network-point-to-point true

/ vrf main routing interface eth-rt8 isis area-tag 1
/ vrf main routing interface eth-rt8 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt8 isis ipv4-routing true
/ vrf main routing interface eth-rt8 isis network-point-to-point true

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1004.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 4

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map red bit-position 1

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 504
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 404
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 304
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 204
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 4.4.4.4/32 sid-value 104

rt5

/ system hostname rt5

/ vrf main interface physical eth-rt0 ipv4 address 10.5.0.5/24
/ vrf main interface physical eth-rt0 port pci-b0s4

/ vrf main interface physical eth-rt1 ipv4 address 10.15.0.5/24
/ vrf main interface physical eth-rt1 port pci-b0s5

/ vrf main interface physical eth-rt6 ipv4 address 10.56.0.5/24
/ vrf main interface physical eth-rt6 port pci-b0s6

/ vrf main interface physical eth-rt8 ipv4 address 10.58.0.5/24
/ vrf main interface physical eth-rt8 port pci-b0s7

/ vrf main interface loopback loop1 ipv4 address 5.5.5.5/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt0 isis area-tag 1
/ vrf main routing interface eth-rt0 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt0 isis ipv4-routing true
/ vrf main routing interface eth-rt0 isis network-point-to-point true
/ vrf main routing interface eth-rt0 traffic-engineering metric 1000
/ vrf main routing interface eth-rt0 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing interface eth-rt1 isis area-tag 1
/ vrf main routing interface eth-rt1 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt1 isis ipv4-routing true
/ vrf main routing interface eth-rt1 isis network-point-to-point true

/ vrf main routing interface eth-rt6 isis area-tag 1
/ vrf main routing interface eth-rt6 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt6 isis ipv4-routing true
/ vrf main routing interface eth-rt6 isis network-point-to-point true

/ vrf main routing interface eth-rt8 isis area-tag 1
/ vrf main routing interface eth-rt8 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt8 isis ipv4-routing true
/ vrf main routing interface eth-rt8 isis network-point-to-point true
/ vrf main routing interface eth-rt8 traffic-engineering metric 100
/ vrf main routing interface eth-rt8 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1005.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 5

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map red bit-position 1
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing interface eth-rt0 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt6 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt6 traffic-engineering affinity-map red
/ vrf main routing interface eth-rt0 traffic-engineering affinity-map green
/ vrf main routing interface eth-rt6 traffic-engineering affinity-map green

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 505
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 405
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 305
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 205
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 5.5.5.5/32 sid-value 105

rt6

/ system hostname rt6

/ vrf main interface physical eth-rt2 ipv4 address 10.26.0.6/24
/ vrf main interface physical eth-rt2 port pci-b0s4

/ vrf main interface physical eth-rt5 ipv4 address 10.56.0.6/24
/ vrf main interface physical eth-rt5 port pci-b0s5

/ vrf main interface physical eth-rt7 ipv4 address 10.67.0.6/24
/ vrf main interface physical eth-rt7 port pci-b0s6

/ vrf main interface physical eth-rt9 ipv4 address 10.69.0.6/24
/ vrf main interface physical eth-rt9 port pci-b0s7

/ vrf main interface loopback loop1 ipv4 address 6.6.6.6/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt2 isis area-tag 1
/ vrf main routing interface eth-rt2 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt2 isis ipv4-routing true
/ vrf main routing interface eth-rt2 isis network-point-to-point true
/ vrf main routing interface eth-rt2 traffic-engineering metric 50
/ vrf main routing interface eth-rt2 traffic-engineering delay average 7500 minimum 5000 maximum 10000

/ vrf main routing interface eth-rt5 isis area-tag 1
/ vrf main routing interface eth-rt5 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt5 isis ipv4-routing true
/ vrf main routing interface eth-rt5 isis network-point-to-point true

/ vrf main routing interface eth-rt7 isis area-tag 1
/ vrf main routing interface eth-rt7 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt7 isis ipv4-routing true
/ vrf main routing interface eth-rt7 isis network-point-to-point true

/ vrf main routing interface eth-rt9 isis area-tag 1
/ vrf main routing interface eth-rt9 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt9 isis ipv4-routing true
/ vrf main routing interface eth-rt9 isis network-point-to-point true
/ vrf main routing interface eth-rt9 traffic-engineering metric 50
/ vrf main routing interface eth-rt9 traffic-engineering delay average 7500 minimum 5000 maximum 10000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1006.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 6

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map red bit-position 1
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing interface eth-rt5 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt7 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt5 traffic-engineering affinity-map red
/ vrf main routing interface eth-rt9 traffic-engineering affinity-map red
/ vrf main routing interface eth-rt5 traffic-engineering affinity-map green
/ vrf main routing interface eth-rt7 traffic-engineering affinity-map green

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 506
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 406
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 306
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 206
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 6.6.6.6/32 sid-value 106

rt7

/ system hostname rt7

/ vrf main interface physical eth-rt3 ipv4 address 10.37.0.7/24
/ vrf main interface physical eth-rt3 port pci-b0s4

/ vrf main interface physical eth-rt6 ipv4 address 10.67.0.7/24
/ vrf main interface physical eth-rt6 port pci-b0s5

/ vrf main interface physical eth-rt8 ipv4 address 10.78.0.7/24
/ vrf main interface physical eth-rt8 port pci-b0s6

/ vrf main interface physical eth-rt9 ipv4 address 10.79.0.7/24
/ vrf main interface physical eth-rt9 port pci-b0s7

/ vrf main interface loopback loop1 ipv4 address 7.7.7.7/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt3 isis area-tag 1
/ vrf main routing interface eth-rt3 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt3 isis ipv4-routing true
/ vrf main routing interface eth-rt3 isis network-point-to-point true

/ vrf main routing interface eth-rt6 isis area-tag 1
/ vrf main routing interface eth-rt6 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt6 isis ipv4-routing true
/ vrf main routing interface eth-rt6 isis network-point-to-point true

/ vrf main routing interface eth-rt8 isis area-tag 1
/ vrf main routing interface eth-rt8 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt8 isis ipv4-routing true
/ vrf main routing interface eth-rt8 isis network-point-to-point true
/ vrf main routing interface eth-rt8 traffic-engineering metric 1000
/ vrf main routing interface eth-rt8 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing interface eth-rt9 isis area-tag 1
/ vrf main routing interface eth-rt9 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt9 isis ipv4-routing true
/ vrf main routing interface eth-rt9 isis network-point-to-point true
/ vrf main routing interface eth-rt9 traffic-engineering metric 1000
/ vrf main routing interface eth-rt9 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1007.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 7

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing interface eth-rt6 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt9 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt6 traffic-engineering affinity-map green
/ vrf main routing interface eth-rt9 traffic-engineering affinity-map green

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 507
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 407
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 307
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 207
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 7.7.7.7/32 sid-value 107

rt8

/ system hostname rt8

/ vrf main interface physical eth-rt4 ipv4 address 10.48.0.8/24
/ vrf main interface physical eth-rt4 port pci-b0s4

/ vrf main interface physical eth-rt5 ipv4 address 10.58.0.8/24
/ vrf main interface physical eth-rt5 port pci-b0s5

/ vrf main interface physical eth-rt7 ipv4 address 10.78.0.8/24
/ vrf main interface physical eth-rt7 port pci-b0s6

/ vrf main interface loopback loop1 ipv4 address 8.8.8.8/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt4 isis area-tag 1
/ vrf main routing interface eth-rt4 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt4 isis ipv4-routing true
/ vrf main routing interface eth-rt4 isis network-point-to-point true

/ vrf main routing interface eth-rt5 isis area-tag 1
/ vrf main routing interface eth-rt5 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt5 isis ipv4-routing true
/ vrf main routing interface eth-rt5 isis network-point-to-point true
/ vrf main routing interface eth-rt5 traffic-engineering metric 1000
/ vrf main routing interface eth-rt5 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing interface eth-rt7 isis area-tag 1
/ vrf main routing interface eth-rt7 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt7 isis ipv4-routing true
/ vrf main routing interface eth-rt7 isis network-point-to-point true
/ vrf main routing interface eth-rt7 traffic-engineering metric 1000
/ vrf main routing interface eth-rt7 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1008.00

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 8

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 508
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 408
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 308
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 208
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 8.8.8.8/32 sid-value 108

rt9

/ system hostname rt9

/ vrf main interface physical eth-rt3 ipv4 address 10.39.0.9/24
/ vrf main interface physical eth-rt3 port pci-b0s4

/ vrf main interface physical eth-rt6 ipv4 address 10.69.0.9/24
/ vrf main interface physical eth-rt6 port pci-b0s5

/ vrf main interface physical eth-rt7 ipv4 address 10.79.0.9/24
/ vrf main interface physical eth-rt7 port pci-b0s6

/ vrf main interface loopback loop1 ipv4 address 9.9.9.9/32

/ vrf main routing interface loop1 isis area-tag 1
/ vrf main routing interface loop1 isis ipv4-routing true

/ vrf main routing interface eth-rt3 isis area-tag 1
/ vrf main routing interface eth-rt3 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt3 isis ipv4-routing true
/ vrf main routing interface eth-rt3 isis network-point-to-point true
/ vrf main routing interface eth-rt3 traffic-engineering metric 100
/ vrf main routing interface eth-rt3 traffic-engineering delay average 15000 minimum 10000 maximum 20000

/ vrf main routing interface eth-rt6 isis area-tag 1
/ vrf main routing interface eth-rt6 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt6 isis ipv4-routing true
/ vrf main routing interface eth-rt6 isis network-point-to-point true
/ vrf main routing interface eth-rt6 traffic-engineering metric 50
/ vrf main routing interface eth-rt6 traffic-engineering delay average 7500 minimum 5000 maximum 10000

/ vrf main routing interface eth-rt7 isis area-tag 1
/ vrf main routing interface eth-rt7 isis fast-reroute ti-lfa level-1 enabled true
/ vrf main routing interface eth-rt7 isis ipv4-routing true
/ vrf main routing interface eth-rt7 isis network-point-to-point true
/ vrf main routing interface eth-rt7 traffic-engineering metric 1000
/ vrf main routing interface eth-rt7 traffic-engineering delay average 150000 minimum 100000 maximum 200000

/ vrf main routing isis instance 1 is-type level-1
/ vrf main routing isis instance 1 area-address 49.0000.0000.0000.1009.00

/ vrf main routing isis instance 1 segment-routing enabled true
/ vrf main routing isis instance 1 segment-routing label-blocks srgb lower-bound 20000
/ vrf main routing isis instance 1 segment-routing label-blocks srgb upper-bound 23000

/ vrf main routing isis instance 1 segment-routing msd node-msd 8
/ vrf main routing isis instance 1 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 9

/ routing traffic-engineering affinity-map blue bit-position 0
/ routing traffic-engineering affinity-map red bit-position 1
/ routing traffic-engineering affinity-map green bit-position 2

/ vrf main routing interface eth-rt3 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt7 traffic-engineering affinity-map blue
/ vrf main routing interface eth-rt7 traffic-engineering affinity-map green
/ vrf main routing interface eth-rt6 traffic-engineering affinity-map red

/ vrf main routing isis instance 1 traffic-engineering

/ vrf main routing isis instance 1 flex-algorithm 132 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 131 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 130 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 129 dataplane sr-mpls
/ vrf main routing isis instance 1 flex-algorithm 128 dataplane sr-mpls

/ vrf main routing isis instance 1 flex-algorithm 132 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 509
/ vrf main routing isis instance 1 flex-algorithm 131 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 409
/ vrf main routing isis instance 1 flex-algorithm 130 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 309
/ vrf main routing isis instance 1 flex-algorithm 129 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 209
/ vrf main routing isis instance 1 flex-algorithm 128 segment-routing prefix-sid-map 9.9.9.9/32 sid-value 109

/ vrf main routing isis instance 1 flex-algorithm 132 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 132 definition metric-type delay
/ vrf main routing isis instance 1 flex-algorithm 132 definition prefix-metric false

/ vrf main routing isis instance 1 flex-algorithm 131 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 131 definition metric-type te
/ vrf main routing isis instance 1 flex-algorithm 131 definition prefix-metric false

/ vrf main routing isis instance 1 flex-algorithm 130 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 130 definition affinity include-any blue

/ vrf main routing isis instance 1 flex-algorithm 129 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 129 definition affinity exclude-any red

/ vrf main routing isis instance 1 flex-algorithm 128 definition advertise true
/ vrf main routing isis instance 1 flex-algorithm 128 definition affinity include-all blue
/ vrf main routing isis instance 1 flex-algorithm 128 definition affinity include-all green