cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1618
Views
8
Helpful
4
Replies

XR route policy

cisco_lad2004
Level 5
Level 5

Dear all,

What is the equivalent of IOS route maps "continue" in IOS XR ?

Would this be nesting another policy after the pass statement ?

TIA

Samir

4 Replies 4

Bryan Garland
Cisco Employee
Cisco Employee

Samir,

I think what you would be looking to do would be using "else" or "elseif".  The below link is for the RPL documentation. 

http://www.cisco.com/en/US/partner/docs/routers/xr12000/software/xr12k_r3.9/routing/configuration/guide/xr12krc39_chapter7.html

From the above link:

The if statement also permits an else clause, which is executed if the if condition is false:

  if med eq 8 then
  set community (12:34) additive
  else
  set community (12:56) additive
  endif
  
  

The policy language also provides syntax, using the elseif keyword, to string together a sequence of tests:

  if med eq 150 then
  set local-preference 10
  elseif med eq 200 then
  set local-preference 60
  elseif med eq 250 then
  set local-preference 110
  else
  set local-preference 0
  endif
  

Thanks,

Bryan

To add to Bryan post, changes are applied only once you reached the end of the route-policy so don't forget all the check are done on the original route/path even if it matches several statement which set different parameters.

HTH

Laurent.

Excellent point !

Many thanks Bryan,

I actually came to same conclusion. the "Continue" in IOS simply bypasses existing current sequence.  XR gives the option to simply continue within the roue policy condition and add new match conditions or actions.

Samir

Review Cisco Networking for a $25 gift card