cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1086
Views
6
Helpful
2
Replies

Adding multiple RT communities to routes by route-map

e.maksyukov
Level 1
Level 1

Good day. I have a question.

cisco ASR-903 (RSP3_400) processor (revision RSP3_400)

Cisco IOS XE Software, Version 03.18.01.S - Extended Support Release
Cisco IOS Software, ASR900 Software (PPC_LINUX_IOSD-UNIVERSALK9_NPE-M), Version 15.6(2)S1, RELEASE SOFTWARE (fc1)

I intend to use route-map to apply extended bgp communities. RTs. Something like this:

route-map EXPORT-RT-POLICY permit 10
 match ip address prefix-list PL-VRF1
 continue
 set extcommunity rt 65000:1 additive

route-map EXPORT-RT-POLICY permit 20
 match ip address prefix-list PL-VRF2
 continue
 set extcommunity rt 65000:2 additive

route-map EXPORT-RT-POLICY permit 30
 match ip address prefix-list PL-VRF3
 continue
 set extcommunity rt 65000:3 additive

....

So. I want to apply different number of RTs for different routes based on prefix-lists. So one route can get 2 RTs, another none and so on.

But.

If I apply this route-map to VRF export map, routes that match multiple prefix-lists get only first RT (from first matched prefix-list). Like matched only by one route-map clause.

What do I do wrong?

2 Replies 2

e.maksyukov
Level 1
Level 1

I was testing this setup. If route matched by all prefix-lists (PL-VRF1,PL-VRF2,PL-VRF3) it gets only RT 65000:1. If route matched by PL-VRF2, PL-VRF3 prefix-lists it gets only RT 65000:2. If route matched by PL-VRF3 prefix-list it gets RT 65000:3.

So I conclude, routes get only one extcommunity RT based on first matched prefix-list. But I thought route matched by all prefix-lists should get all corresponding RTs. But it doesn't happen.

I suspect my route-map/continue logic misunderstanding. Can someone clarify it for me, please.

If someone is curious. I opened a Cisco TAC case. There is bug/feature. "Continue" statement isn't supported in VRF export/import route-maps. For now at least.

CSCsz56297 (https://bst.cloudapps.cisco.com/bugsearch/bug/CSCsz56297/)

Review Cisco Networking for a $25 gift card