cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
648
Views
0
Helpful
1
Replies

removing extcommunities on a route-map

mac_mac_net83
Level 1
Level 1

Hi Folks, 

Is there anyway I can remove a single extcommunity rt under a route-map without affecting the other rts?

For example, if I have the route-map below:

 

route-map set-mpls-rt permit 10
match ip address prefix-list route-list-pri
set extcommunity rt 65000:1000 65000:2000 65000:3000 additive

 

What i would like to do is just remove 65000:3000 on the entry but it seems when I do a " no set extcommunity rt 65000:3000" , it removes the entries. So in the end , I need to recopy and past again. 

 

I've searched and it seems I can't find any of other way.

 

Any help is appreciated. 

 

Thank you.

Mark

 

1 Reply 1

Hi Mac,

What I do is like this:

route-map set-mpls-rt permit 10
match ip address prefix-list route-list-pri

no set extcommunity rt

set extcommunity rt 65000:1000 65000:2000 additive

 

Looks like cisco doesn't have a way to unset an existing list of extcommunity. Remove extcommunity then put it back excluding the extcommunity you want to exclude.