show segment-routing policy
Use this command to display segment routing policy information.
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 <0-4294967295> 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
<0-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 4.0.
Example
#show segment-routing policy detail
Policy-Name: p2 Color 1 End-point 3.3.3.3
Admin-Status: UP Oper-Status: UP for 00:08:59
State Transition Count: 1
CSPF Retry Limit: 10 CSPF Retry Interval: 10
Binding SID :
BSID: 24960
Alloc mode: Dynamic
Oper State: Pending
CP ID: 2, Active
Preference: 100 Path Type: Dynamic(isis) CP Origin: Local
Segment List:
Total no. of segments: 1
Segment0[LABEL]: Label :16033
Out-if: eth1 Out-label-stack: 16033
Attributes:
Configured:
Affinity:
Metric-type: TE
IP Constraints:
#show segment-routing policy p2
Policy-Name: p2 Color 1 End-point 3.3.3.3
Admin-Status: UP Oper-Status: UP for 00:09:06
State Transition Count: 1
CSPF Retry Limit: 10 CSPF Retry Interval: 10
Binding SID :
BSID: 24960
Alloc mode: Dynamic
Oper State: Pending
CP ID: 2, Active
Preference: 100 Path Type: Dynamic(isis) CP Origin: Local
Segment List:
Total no. of segments: 1
Segment0[LABEL]: Label :16033
Out-if: eth1 Out-label-stack: 16033
Attributes:
Configured:
Affinity:
Metric-type: TE
IP Constraints:
#show segment-routing policy candidate-path origin local
Policy-Name Color End-point State Forwarding-Info
p2 1 3.3.3.3 UP 16033/eth1
CP ID: 2, Active
Preference: 100 Path Type: Dynamic(isis) CP Origin: Local
CP state: Valid
Segment List:
Total no. of segments: 1
Segment0[LABEL]: Label :16033
Out-if: eth1 Out-label-stack: 16033
Attributes:
Configured:
Affinity:
Metric-type: TE
IP Constraints:
#show segment-routing policy
Policy-Name Color End-point State Forwarding-Info
p2 1 3.3.3.3 UP 16033/eth1
#
#show segment-routin policy p2 candidate-path 2 origin local
Policy-Name: p2 Color 1 End-point 3.3.3.3
Admin-Status: UP Oper-Status: UP
CP ID: 2, Active
Preference: 100 Path Type: Dynamic(isis) CP Origin: Local
CP state: Valid
Segment List:
Total no. of segments: 1
Segment0[LABEL]: Label :16033
Out-if: eth1 Out-label-stack: 16033
Attributes:
Configured:
Affinity:
Metric-type: TE
IP Constraints:
Last modified date: 10/20/2023