prefix-segment
Syntax
prefix-segment { algorithm name { index index; node-segment; redistribute; } }
Hierarchy Level
[edit logical-systems name policy-options policy-statement name from], [edit logical-systems name policy-options policy-statement name then], [edit policy-options policy-statement policy-name term term-name from], [edit policy-options policy-statement polic-name term term-name then], [edit protocols ospf source-packet-routing]
Description
Configure prefix segment attributes such as index and node segment. Prefix segment index is the index assigned to a specific prefix. This is used by all other remote routers in the network to index the prefix into respective segment routing global blocks (SRGB) to derive the segment identifier and to forward the traffic destined for the current prefix. Prefix segment index is provisioned through policy for each prefix along with the option to mark it as a node segment.
Indicate route which is evaluating against policy must have prefix-segment information associated with it. If route has prefix-segment information associated with it, policy action results in Policy Accept, if not, policy action is Policy Reject. Once policy action result in Policy Accept after evaluating from clause, action specified in the then clause is applied to the matching route.
algorithm name |
Specify the prefix segment attributes for strict/flex algorithm.
|
index index |
Specify the prefix segment index
|
node-segment |
Set node segment flag for this prefix segment. |
reuse-allocated-sid |
Specify this option if a large number of prefixes need to be assigned SID value. You can reuse the allocated SID on the IGP route only if they are available during export of IGP routes. |
redistribute |
Enable prefix-sid redistribution between BGP and ISIS via policy configuration without specifying index under prefix-segment. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 17.2.
Statement introduced under [edit protocols ospf source-packet-routing]
hierarchy in Junos OS Release 19.1R1 for MX Series.
reuse-allocated-sid
option introduced in Junos OS Release 20.4R1.
redistribute
option introduced in Junos OS Release 22.2R1.