Segment routing (segment-routing) steers traffic along a path encoded as a list of segments. SR-MPLS settings (segment-routing > mpls) cover the segment routing global block (SRGB), the SRGB cleanup and retry timers, shutdown and the connected prefix SID map that assigns an index or absolute label to local prefixes per address family. SRv6 settings (segment-routing > srv6) cover the encapsulation source address and the locators with their prefixes. SR-TE settings (segment-routing > traffic-engineering) cover the MPLS encapsulation source address, liveness detection, the PCC source address and PCE addresses, the affinity map, TE interfaces with metric and affinity colors, explicit segment lists, SRv6 locators, on-demand colors (ODN) and SR-TE policies. On-demand colors and policies support shutdown, lockdown, liveness detection and candidate paths, each with explicit segment lists, dynamic path computation (locally or through PCEP) and constraints (segments, disjointness association group, affinity).
Note
SR-MPLS requires feature_set.mpls, feature.mpls_segment_routing and, for SR-TE, feature.mpls_segment_routing_traffic_engineering. SRv6 requires feature.srv6, which cannot be enabled together with feature mpls segment-routing. An SRv6 locator prefix must be a /64 prefix. A candidate path preference supports either explicit segment lists or constraints, and its constraints support either affinity or an association group, with only one of include-all, include-any or exclude-any affinity. Each on-demand color and policy supports only one preference with dynamic path computation or constraints, and an on-demand color must not use the color of an explicit policy.
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value configuration Class configuration No
Name Type Constraint Mandatory Default Value routing Class routing No
Name Type Constraint Mandatory Default Value segment_routing Class segment_routing No
Name Type Constraint Mandatory Default Value shutdown Boolean true, falseNo global_ block_ min Integer min: 16000, max: 471804 No global_ block_ max Integer min: 16000, max: 471804 No timers_ srgb_ cleanup Integer min: 1, max: 65535 No timers_ srgb_ retry Integer min: 1, max: 65535 No connected_ prefix_ sid_ map_ address_ families List connected_ prefix_ sid_ map_ address_ families No
Name Type Constraint Mandatory Default Value encapsulation_ source_ address IP No locators List locators No
Name Type Constraint Mandatory Default Value encapsulation_ mpls_ source_ ipv4 IP No liveness_ detection_ interval Integer min: 50, max: 30000 No liveness_ detection_ multiplier Integer min: 1, max: 10 No liveness_ detection_ mpls_ bfd Boolean true, falseNo liveness_ detection_ mpls_ oam Boolean true, falseNo pcc_ source_ address_ ipv4 IP No pcc_ pce_ addresses List pcc_ pce_ addresses No affinity_ map_ colors List affinity_ map_ colors No segment_ routing_ srv6_ locators List String No interfaces List interfaces No segment_lists List segment_lists No on_ demand_ colors List on_ demand_ colors No policies List policies No
Name Type Constraint Mandatory Default Value address_family Choice ipv4, ipv6Yes prefixes List prefixes No
Name Type Constraint Mandatory Default Value name String Yes prefix IP No
Name Type Constraint Mandatory Default Value ipv4 IP Yes precedence Integer min: 0, max: 255 No
Name Type Constraint Mandatory Default Value color String Yes bit_position Integer min: 0, max: 31 No
Name Type Constraint Mandatory Default Value interface_type Choice ethernet, loopback, mgmt, port-channel, vlan, vniYes interface_id Any String or Integer[min: 0] Yes metric Integer min: 0, max: 4294967295 No affinity_colors List String No
Name Type Constraint Mandatory Default Value name String Yes indexes List indexes No
Name Type Constraint Mandatory Default Value color Integer min: 0, max: 4294967295 Yes shutdown Boolean true, falseNo lockdown Boolean true, falseNo liveness_ detection Class liveness_ detection No candidate_ paths_ preferences List candidate_ paths_ preferences No
Name Type Constraint Mandatory Default Value name String Yes color Integer min: 0, max: 4294967295 No endpoint IP No shutdown Boolean true, falseNo lockdown Boolean true, falseNo liveness_ detection Class liveness_ detection No candidate_ paths_ preferences List candidate_ paths_ preferences No
Name Type Constraint Mandatory Default Value prefix IP Yes index Integer min: 0, max: 471804 No absolute Integer min: 16000, max: 471804 No
Name Type Constraint Mandatory Default Value index Integer min: 1, max: 65535 Yes mpls_label Integer min: 16, max: 471804 No segment_ routing_ srv6 IP No policy_endpoint Boolean true, falseNo
Name Type Constraint Mandatory Default Value shutdown Boolean true, falseNo index_limit Integer min: 0, max: 65535 No mpls_bfd Boolean true, falseNo mpls_oam Boolean true, falseNo
Name Type Constraint Mandatory Default Value preference Integer min: 0, max: 4294967295 Yes shutdown Boolean true, falseNo explicit_ segment_ lists List String No dynamic Boolean true, falseNo dynamic_pcep Boolean true, falseNo dynamic_ metric_ type Choice igpNo constraints_ segments_ dataplane_ mpls Boolean true, falseNo constraints_ segments_ protected Boolean true, falseNo constraints_ segments_ unprotected Boolean true, falseNo constraints_ association_ group_ disjoint_ type Choice link, nodeNo constraints_ association_ group_ disjoint_ id Integer min: 0, max: 4294967295 No constraints_ affinity_ include_ all_ colors List String No constraints_ affinity_ include_ any_ colors List String No constraints_ affinity_ exclude_ any_ colors List String No
Example 1: SR-MPLS with an SRGB and connected prefix SIDs
mpls_segment_routing : true
connected_prefix_sid_map_address_families :
Example 2: SR-TE with PCC, affinities, an on-demand color and an explicit policy
mpls_segment_routing : true
mpls_segment_routing_traffic_engineering : true
encapsulation_mpls_source_ipv4 : 10.0.0.1
pcc_source_address_ipv4 : 10.0.0.1
- interface_type : ethernet
candidate_paths_preferences :
constraints_segments_dataplane_mpls : true
constraints_segments_protected : true
constraints_affinity_include_all_colors :
candidate_paths_preferences :
constraints_association_group_disjoint_type : link
constraints_association_group_disjoint_id : 2
Example 3: SRv6 locator and encapsulation source address
encapsulation_source_address : 2001:db8::2
prefix : 2001:db8:0:2::/64