01-13-2011 04:39 AM - edited 03-04-2019 11:04 AM
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
01-18-2011 01:05 PM
Samir,
I think what you would be looking to do would be using "else" or "elseif". The below link is for the RPL documentation.
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
01-18-2011 03:50 PM
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.
01-18-2011 11:28 PM
Excellent point !
01-18-2011 11:26 PM
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
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