OcNOS-SP : Segment Routing Guide : Segment Routing Command Reference : Segment Routing Policy Commands : metric-type
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 <1-4294967295>|)
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 4.0.
Example
#configure terminal
(config)#segment-routing
(config-sr)#traffic-engineering
(config-sr-te)#policy SR_POLICY_1
(config-sr-pol)#candidate-path 1
(config-sr-pol-cp)#dynamic-path isis
(config-sr-pol-cp)#constraints
(config-sr-pol-cp-cons)#metric-type te
(config-sr-pol-cp-cons)#
Last modified date: 10/20/2023