Skip to content

Junos EVPN Type 5: origin type incorrect for redistributed connected routes #114

@dhalperi

Description

@dhalperi

Problem

Batfish sets origin_type=incomplete for connected routes redistributed into EVPN Type 5, but Junos devices report origin_type=IGP for these routes.

Technical Details

When a Junos device redistributes a connected route into EVPN Type 5 (via ip-prefix-routes under protocols evpn), the resulting EVPN route has origin type IGP (I). Batfish models this redistribution with origin_type=incomplete, which is the standard for redistributed routes in conventional BGP but not correct for Junos EVPN Type 5 connected redistribution.

Observed In

junos_evpn_type5 lab -- route 10.99.0.0/31 in RD 172.16.0.100:10000 on node1-1, node2-1, and router1.

Symptoms

EVPN RIB validation fails with:

('172.16.0.100:10000', '10.99.0.0/31'): {
    'origin_type': 'Batfish: incomplete, real: I'
}

Configuration Patterns

Junos EVPN Type 5 with connected routes in a VRF that has protocols evpn ip-prefix-routes configured. The connected route (e.g., from a directly-attached interface) is exported into EVPN and distributed to remote PEs.

Next Steps

Update Batfish's EVPN Type 5 export logic to use origin_type=igp when redistributing connected routes on Junos, matching the observed device behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions