Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


definition (Protocols OSPF)


Hierarchy Level


Configure the flex-algorithm definition (FAD) and specify the parameters of the definition. OSPFv2 calculates the path based on these specified parameters of the FAD. We recommend configuring flexible algorithm on only a couple of routers to provide redundancy and to avoid conflicts.



Normal SPF of type 0


Strict SPF


Specify the metric type that you would like to use in your network.

  • Values:

    • igp-metric— Specify this option to use the IGP route metric instead of the traffic engineering metric.

    • te-metric— Specify this option to use the configured traffic engineering metric instead of the IGP metric if you have enabled traffic engineering on the device.


Specify a priority to the flexible algorithm advertisement. OSPFv2 prioritizes a particular FAD advertisement over another FAD based on your assigned priority.

  • Range: 0 through 255

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level


Release Information

Statement introduced in Junos OS Release 21.1R1.