The igp metric command configures a metric for an SRv6 TE Policy involved in SPF computation performed using the IGP shortcut and forwarding adjacency functions.
The undo igp metric command restores the default settings.
By default, the SRv6 TE Policy metric is equal to the IGP metric minus 1.
Parameter | Description | Value |
---|---|---|
relative relativeValue |
Specifies the relative metric mode. |
The relativeValue is an integer ranging from -10 to 10 and is the offset between SRv6 TE Policy metric and an IGP metric. The default value is -1. |
absolute absoluteValue |
Specifies the absolute metric mode. |
The absoluteValue is an integer ranging from 1 to 65535. |
Usage Scenario
This command is used to configure an IGP metric for an SRv6 TE Policy.
You can specify the metric of an SRv6 TE Policy involved in path computation performed using the IGP shortcut function.If an absolute metric is used, the metric of the SRv6 TE Policy is the configured metric.
If a relative metric is used, the metric of the SRv6 TE Policy is the sum of the corresponding IGP path metric and the relative metric.