OcNOS SP : Segment Routing Guide : Segment Routing Command Reference : On-Demand Nexthop Commands
On-Demand Nexthop Commands
This chapter describes the segment routing on demand nexthop commands.
A.B.C.D (IP constraints)
Use this command to set IP constraints for a dynamic candidate path. Use the no form of this command to remove an IP constraint from a dynamic candidate path.
Command Syntax
A.B.C.D (loose|strict|)
no A.B.C.D
Parameters
loose
Make this constraint loose
strict
Make this constraint strict
Default
By default, IP constraint is considered as loose.
Command Mode
ODN Candidate path constraint mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS#conf t
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#constraints
OcNOS(config-sr-odn-dyn-cp-cons)#1.1.1.1 loose
OcNOS(config-sr-odn-dyn-cp-cons)#end
affinity
Use this command to set a set affinity constraints for a dynamic candidate path.
Use the no form of this command to remove affinity constraints from a dynamic candidate path.
Command Syntax
affinity (exclude-any|incude-all|include-any) ADMIN-GROUP-NAME
no affinity (exclude-any|incude-all|include-any) ADMIN-GROUP-NAME
Parameters
exclude-any
Exclude any attribute
include-all
Include all attribute
include-any
Include any attribute
ADMIN-GROUP-NAME
Administrative group name
Default
By default, no affinity constraint is configured.
Command Mode
ODN Candidate path constraint mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#constraints
OcNOS(config-sr-odn-dyn-cp-cons)#affinity include-all a1
OcNOS(config-sr-odn-dyn-cp-cons)#
binding-sid mpls label
Use this command to configure binding SID MPLS label value for a segment routing ODN template. Use the no form of this command to remove a binding SID
Command Syntax
binding-sid mpls label
no binding-sid mpls label
Parameters
<16-15999>
MPLS Label
Default
By default, binding SID is not configured.
Command Mode
RSVP trunk mode
Segment routing policy mode
ODN mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#binding-sid mpls label 16
OcNOS(config-sr-odn)#
candidate-path
Use this command to configure a candidate path for a segment routing policy.
Use the no form of this command to remove a candidate path from a segment routing policy
Command Syntax
candidate-path <1-65535>
no candidate-path <1-65535>
Parameters
<1-65535>
Identifier for candidate path
Default
By default, no candidate path is configured.
Command Mode
Segment routing ODN template mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 11
OcNOS(config-sr-odn-cp)#
constraints
Use this command to set constraints for a dynamic candidate path.
Use the no form of this command to remove constraints from a dynamic candidate path.
Command Syntax
constraints
no constraints
Parameters
NA
Default
By default, constraints is not configured.
Command Mode
Candidate path mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 11
OcNOS(config-sr-odn-cp)#constraints
cspf-retry-interval
Use this command to set the retry interval for two successive ISIS/OSPF CSPF computation for a candidate path.
Use the no form of this command to remove the CSPF retry interval
Command Syntax
cspf-retry-interval <1-600>
no cspf-retry-interval
Parameters
<1-600>
Time in seconds between successive retries
Default
By default, the retry interval is 10 seconds
Command Mode
Segment-routing ODN mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#cspf-retry-interval 44
OcNOS(config-sr-odn)#
cspf-retry-limit
Use this command to set the number of retries for ISIS/OSPF CSPF computation for a candidate path. Use the no form of this command to set the CSPF retry limit to its default (100).
Note: CSPF computation engine will compute cspf for a requested path after each retry interval until this limit is reached.
Command Syntax
cspf-retry-limit <1-65535>
no cspf-retry-limit
Parameters
<1-65535>
Number of times CSPF should retry
Default
By default, the retry limit is 100
Command Mode
Segment-routing ODN mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#cspf-retry-limit 44
OcNOS(config-sr-odn)#
dynamic-path
Use this command to set a candidate path as a dynamic path and request the computation engine to compute LSP.
Use the no form of this command to remove a dynamic path type and computation engine from a candidate path
Note: Candidate path type or computation engine cannot be updated
Command Syntax
dynamic-path (isis (WORD|) | ospf (|)| pcep)
no dynamic-path (isis (WORD|) | (ospf |)| pcep)
Parameters
isis
Request ISIS WORD ISIS instance name
ospf
Request OSPF OSPF process identifier
pcep
Request PCEP
Default
By default, path type is not set and no computation engine is attached.
Command Mode
ODN Candidate path mode
Example
OcNOS(config)#
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#dynamic-path isis 1
OcNOS(config-sr-odn-cp)#
exit-odn-cp
Use this command to leave segment routing on-demand-nexthop candidate-path mode.
Command Syntax
exit-odn-cp
Parameters
None
Default
NA
Command Mode
Segment-routing ODN Candidate-path mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#exit-odn-cp
OcNOS(config-sr-odn)#
OcNOS(config-sr-odn)#
exit-sr-odn
Use this command to leave segment routing on-demand-nexthop mode.
Command Syntax
exit-sr-odn
Parameters
None
Default
NA
Command Mode
Segment-routing ODN mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#exit-sr-odn
OcNOS(config-sr-te)#
metric-type
Use this command to set a metric-type for optimization objective.
Use the no form of this command to remove a metric type from a dynamic candidate path.
Command Syntax
metric-type (igp|te)(bound |)
no metric-type (igp|te)
Parameters
igp
IGP metric
te
TE metric
bound
Maximum allowed metric for computed path
<1- 4294967295>
Maximum allowed metric value
Default
By default, no metric and bound is configured.
Command Mode
Candidate path constraint mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#dynamic-path pcep
OcNOS(config-sr-odn-cp)#constraints
OcNOS(config-sr-odn-dyn-cp-cons)#metric-type igp
on-demand-nexthop
Use this command to configure a ODN template with color.
Use the no form of the command to remove an ODN template
Command Syntax
on-demand-nexthop <1-4294967295>
no on-demand-nexthop
Parameters
<1-4294967295>
color value for the ODN template
Default
By default, ODN template is not configured.
Command Mode
Traffic-engineering mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#
OcNOS(config-sr-odn)#
preference
Use this command to set a preference value for an ODN candidate path.
Use the no form of this command to remove a preference value from an ODN candidate path.
Command Syntax
preference <1-65535>
no preference
Parameters
<1-65535>
Preference for candidate path.
Default
By default, preference value is 100 for a candidate path.
Command Mode
ODN Candidate path mode
Applicability
This command was introduced in OcNOS version 6.2.0.
Example
OcNOS(config)#segment-routing
OcNOS(config-sr)#traffic-engineering
OcNOS(config-sr-te)#on-demand-nexthop 101
OcNOS(config-sr-odn)#candidate-path 1
OcNOS(config-sr-odn-cp)#preference 111
OcNOS(config-sr-odn-cp)#
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: