Hi admin_max,
Greetings,
As per my understanding, in the Juniper terminology, it is called Filter-based forwarding.
Please refer the below link for details and configuration example: https://www.juniper.net/documentation/en_US/junos/topics/topic-map/filter-based-forwarding-policy-based-routing.html#jd0e894
Please mark "Accept as solution" if this answers your query.
Kudos are appreciated too!
Regards,
Sharat Ainapur