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

Cisco IOS-XR to IOS configuration

ahmadfarkhan
Level 1
Level 1

Hi All,

Is it possible to convert following below IOS-XR RPL to IOS route-map configuration ?. This is RPL for outbound BGP to transit peering.. Appreciate if someone can guide me for this conversion.. At least close enough to this RPL..  Thanks in advance..

route-policy BGP-OUT-BASE-POLICY
# Repetitive route processing required in all peering
if community matches-any blackhole-transit-upstream then
pass
elseif (destination in testcust-own-ipv4-permit) and (destination in prefixsize-ipv4-permit) then
pass
elseif (as-path in METRO_E) and (destination in prefixsize-ipv4-permit) then
pass
elseif (destination in testcust-cust-ipv4-permit) and (destination in prefixsize-ipv4-permit) then
pass
else
drop
endif
end-policy
!
route-policy BGP-OUT-TRANSIT-transittest
apply BGP-OUT-BASE-POLICY
if destination in transittest-out-deny-te then
drop
elseif community matches-any blackhole-transit-upstream then
set community blackhole-transittest
pass
elseif community matches-any ignore-action-to-transittest then
pass
elseif community matches-any do-not-export-to-transittest then
drop
elseif community matches-any prepend-transittest-once then
prepend as-path 1234 1
pass
elseif community matches-any prepend-transittest-twice then
prepend as-path 1234 2
pass
elseif community matches-any prepend-transittest-thrice then
prepend as-path 1234 3
pass
else
pass
endif
end-policy
!

0 Replies 0