Routing

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.

MX series - conditional route advertisement

  • 1.  MX series - conditional route advertisement

    Posted 06-01-2023 06:33

    Hello all, 

    I have a custom policy statement, which advertises aggregate routes towards a BGP peer.

    I want to amend this export filter, to only allow the advertisement of aggregate routes 'IF' a specific route exists in the routing table (it's a VRF).

    My idea is to inject a static route into the VRF from multiple locations, and amend the export policy statement to include a conditional statement (if-route-exists), to only send the aggregate route towards the peer, if the routing-table is fully converged (static route received)

    Existing:

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes from protocol aggregate

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes from route-filter x.x.x.x/10 exact

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes then accept

    set policy-options policy-statement send-aggregate-SL term suppress-specific-routes then reject

    Proposed: 

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes from protocol aggregate

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes from route-filter x.x.x.x/10 exact

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes from condition receive_static_route

    set policy-options policy-statement send-aggregate-SL term accept-specific-routes then accept

    set policy-options policy-statement send-aggregate-SL term suppress-specific-routes then reject

    set policy-options condition receive_static_route if-route-exists 192.168.1.1/32

    set policy-options condition receive_static_route if-route-exists table vrfid45.inet.0

    Any advice or guidance would be greatly appreciated!

    Thank you



    ------------------------------
    JAMIE CALLISTER
    ------------------------------