The spf-priority command configures a priority for the SPF calculation in a base topology or all IPv4 and IPv6 topology instances.
The undo spf-priority command restores the default priority of the SPF calculation in a base topology or all IPv4 and IPv6 topology instances.
By default, the priority of the SPF calculation in base topology and all topology instances is 64.
| Parameter | Description | Value |
|---|---|---|
| priority-value | Specifies the priority of the SPF calculation in a base topology or all topology instances. The greater the priority value, the higher the priority. | The value is an integer ranging from 1 to 127. |
When multiple IS-IS topology instances are deployed on a network, the spf-priority command can be used to set a priority for the SPF calculation in each IS-IS topology instance.
A higher priority of the SPF calculation in a topology instance means that the routes in the topology instance are converged preferentially, which ensures the proper operation of important services.
# Set the priority of the SPF calculation in an IPv4 base topology to 30.
<sysname> system-view
[sysname] isis 1
[sysname-isis-1] spf-priority 30
<sysname> system-view
[sysname] isis 1
[sysname-isis-1] topology red topology-id 10
[sysname-isis-1-topology-red] spf-priority 30