You can query the Open Shortest Path First (OSPF) protocol status.
Context
OSPF is a link-state, hierarchical IGP routing algorithm. OSPF features include least-cost routing, multipath routing, and load sharing. OSPF was derived from an early version of the IS-IS protocol.