I knw policy route having preference over Static and all other route
But do anyone knw a command to make sure that traffic is going only via policy route not via static route.
I am asking this question in case someone has misconfigured policy route.
Fortigate checks first PBR table, in order, then regular FIB (static/dynamic) table. You could, for example, prevent going to the regular FIB by creating 2 PBR rules - 1st via the actual interface you want it to be routed to, 2nd, after this, PBR rule with the same match but routing traffic to a Loopback interface, which is always on, and this way black holing such traffic when regular interface is down. Not something I did, but thinking out loud.
EDIT: only after the publishing noticed the post is from 2018, but will leave it for future readers anyway.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.