This article describes the behavior and limitations encountered when attempting to control the route preference of EVPN Type-5 routes during the migration from a legacy OSPF environment to an EVPN-based architecture on Juniper devices.
Workarounds & Best Practices
Example: OSPF Policy to Prevent Routing Loops
policy-options {
prefix-list MIGRATED_TO_EVPN {
10.10.71.0/24;
...
}
policy-statement BLOCK_OSPF_MIGRATED {
term DENY {
from {
prefix-list MIGRATED_TO_EVPN;
then reject;
term ACCEPT {
then accept;
protocols {
ospf {
import BLOCK_OSPF_MIGRATED;