07-18-2024 09:25 AM - edited 07-18-2024 09:37 AM
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
Solved! Go to Solution.
07-18-2024 09:56 AM
Hi @dgawaya1 ,
All prefixes not matching the if statement will hit the pass statement.
Regards,
07-18-2024 09:46 AM
Hi @dgawaya1 ,
Try this instead:
route-policy Test1
if destination in PRE-TEST then
set extcommunity rt 1877:21
endif
pass
end-policy
Regards,
07-18-2024 09:49 AM - edited 07-18-2024 09:53 AM
@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?
07-18-2024 09:56 AM
Hi @dgawaya1 ,
All prefixes not matching the if statement will hit the pass statement.
Regards,
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