03-02-2017 06:50 AM - edited 03-05-2019 08:07 AM
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?
03-02-2017 08:31 AM
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.
03-07-2017 02:59 AM
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/)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide