Is there a way in JunOS (I'm testing on 11.4R1.14) to see the prefixes filtered out by a policy statement?
I have the following in the lab dropping unwanted prefixes from BGP neighbors;
policy-statement PS-Filter-Prefix-Size {
from {
route-filter 0.0.0.0/0 prefix-length-range /27-/32;
route-filter 0.0.0.0/0 prefix-length-range /0-/5;
}
protocols {
bgp {
group my-peers {
type external;
import [ PS-Filter-Prefix-Size ];
}
}
}
This seems to be working, as show route hidden
reveals some test /32 routes which are not present in the output of show route
or show route forwarding-table
. Other /24 routes are coming in though for example.
Can I displays routes that have been caught by a filter?