I have created a prefix-list and I am using it in a route-map. However, my route-map is not working as I expect it to work.
ip prefix-list LIST_A seq 5 permit 10.20.20.0/22 ge 32 route-map A-B-OUT permit 10 match community COMM_A exact-match set community 100:100 route-map A-B-OUT permit 15 match ip address prefix-list LIST_A match community COMM_B exact-match set community 100:200 route-map A-B-OUT permit 20 match community COMM_C exact-match set community 100:100
I added a new term 15 in between two existing terms. 10.20.20.0/16 is matched by some other term but the more specific routes have to be advertised out differently. So I match those with a prefix list and tag them with a different community. However, when I see route 10.20.20.1/32 on B, it is advertised with community 100:100 and not 100:200. That makes me wonder if it is being matched by a later term.
Is there a way to check with routes are being matched by each term in a route map?