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

How to convert route-map to route-policy of IOSXR

moonlight_462
Level 1
Level 1

hello, Expecter

 

I have to convert IOS configuration to IOSXR.

How to convert below configuration to route-policy of IOSXR

I couldn't find to match interface option on configuration guide.

 

route-map Bound_for_Customers deny 10

  match interface gigabitethernet 1/15 gigabitethernet 1/16

 

Please advise me.

Thank you.

 

 

2 Replies 2

mivens
Level 1
Level 1

You can match the destination networks for the two interfaces instead.

 

So it for example you have

interface GigabitEthernet1/15
ip address 198.51.100.1 255.255.255.0
!
interface GigabitEthernet1/16
ip address 203.0.113.1 255.255.255.0

 

then the equivalent XR route policy would be something like

 

route-policy Bound_for_Customers
   if destination in (198.51.100.0/24, 203.0.113.0/24) then
  drop 
 endif 
end-policy

is it ok if I add one note to that?

the sample RPL from you mark is sane and sound, but the default "ticket" is drop.

so you would want to add an:

else

pass

endiff

to the rpl after the drop statement.

otherwise everything will get dropped since there is no pass or set ticket handed out.

xander