Help with filter for bgp route 0.0.0.0/0

Hello, how is everything?
I have a doubt, I believe I’m doing it wrong and would like some help from anyone who can help.
I have a full route from 3 operators, but I would like to receive only the 0.0.0.0/0 route and discard the rest, I did it as follows

prefix-list PREFIX-LIST-IN {
rule 5 {
action permit
prefix 0.0.0.0/0

route-map ASxxx-INPUT {
rule 5 {
action permit
match {
ip {
address {
prefix-list PREFIX-LIST-IN
}
}
}
}
}

how can i be accepting the 0.0.0.0/0 route and discarding the rest?

Release version: 1.3.0-rc6

Hello @steinhorst and welcome them to our community!

Try adding a rule:
set route-map ASxxx-INPUT rule 1000 action 'deny'

And of course, this route-map needs to be applied in BGP

1 Like