OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : On-Demand Nexthop Commands : show segment-routing policy
show segment-routing policy
Use this command to display segment routing policy information for both configured SR-policy and ODN created Policy.
Command Syntax
Use this command to display basic/detailed information for all SR policies:
show segment-routing policy (detail|)
Use this command to check details of a particular policy or a particular candidate path:
show segment-routing policy WORD (candidate-path origin (local|pce)|)
Use this command to check if a policy has candidate-paths with the given origin:
show segment-routing policy candidate-path origin (local|pce)
Parameters
detail
Display details of segment routing policies
WORD
Segment routing policy name
<1-4294967295>
 
Candidate-path identifier
local
Locally originated candidate path
pce
PCE originated candidate path
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS#
rtr29#show segment-routing policy detail
 
Policy-Name: policy_odn_1_1_45.45.45.45 Color 1 End-point 45.45.45.45 Tunnel-ID: 1
Admin-Status: UP Oper-Status: UP for 00:02:23
State Transition Count: 1
CSPF Retry Limit: 100 CSPF Retry Interval: 10
ODN-Policy: True
Binding SID :
BSID: 0
Alloc mode: Dynamic
Oper State: Programmed
 
CP ID: 1, Active
Preference: 100 Path Type: Dynamic(isis) CP Origin: Local
CP state: Valid
Segment List:
Total no. of segments: 1
Segment0[LABEL]: Label :16045
Out-if: xe7 Out-label-stack: 3
Computed TE Metric: 10
Attributes:
Configured:
Affinity:
Metric-type: TE
IP Constraints:
 
Last modified date: 10/20/2023