route filter based on prefix/address list

Hi,

is there any way (based on help site, I cant spot it) to setup route filters based on a prefix list

I have many route filters for different upstreams or peers but all of them use common prefixes within them, problem i have is that if i want to add a new prefix i need to modify every router filter

example IP and use of route filter

if (dst-len<=24 && dst in 192.168.3.0/24) {reject}
if (dst-len<=24 && dst in 192.168.0.0/22) {accept}
if (dst-len<=24 && dst in 192.168.4.0/23) {accept}

this the common one here for most rules would be the 192.168.0.0/22 and 192.168.4.0/23 which could be in use within 10-15 route filters.

If I want to add another common prefix lets say 192.168.12.0/24, i need to add it to every route filter…

can I not setup like a prefix list or address list where i can reference instead for example

if (dst-len<=24 && dst in 192.168.3.0/24) {reject}
if (dst-len<=24 && dst in bgpprefixcommon) {accept}

You can match all prefixes in one chain and match against that chain, which works equivalent to prefix lists.

Thank you will give that a go.