cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
141
Views
2
Helpful
3
Replies

Route-map conversion to XR Route-policy

dgawaya1
Level 1
Level 1

Hi Experts, 
I need assistance in converting a route-map below to IOS-XR Route-policy. I'm new to XR 

route-map Test1 permit 10
    match ip address prefix-list PRE-TEST 
  set extcommunity rt 1877:21
route-map Test1 permit 100

I did some research and came up with this (below). However, I believe I fell shot !!

 

route-policy Test1
if destination in PRE-TEST then
set extcommunity rt 1877:21
endif
if destination is-all then
pass
endif
end-policy

Please help. 
thx 
 

1 Accepted Solution

Accepted Solutions

Hi @dgawaya1 ,

All prefixes not matching the if statement will hit the pass statement.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

3 Replies 3

Harold Ritter
Cisco Employee
Cisco Employee

Hi @dgawaya1 ,

Try this instead:

route-policy Test1
if destination in PRE-TEST then
set extcommunity rt 1877:21
endif
pass
end-policy

Regards, 

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

@Harold Ritter , thanks. That I think works indeed but only for the first part of the route-map. What about the second part for destinations not matching the prefix list? 

Hi @dgawaya1 ,

All prefixes not matching the if statement will hit the pass statement.

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México