11-16-2017 08:34 PM - edited 03-01-2019 03:20 PM
I want to edit a route-policy , but to me is easier to rewrite via cli, what is the difference of use a editor (vi, nano ) vs cli, Pros, Cons?
Thanks
Solved! Go to Solution.
12-19-2017 09:12 AM - edited 12-19-2017 09:14 AM
(and I just realized that I'm logged in as 'work', not jasoncrev)
Maybe I'm misunderstanding what you mean by rewrite. I've always edited in XR using a text editor.
Here is the part of the docs that I was referring to:
Attached Policy Modification
Policies that are in use do, on occasion, need to be modified. Traditionally, configuration changes are done by completely removing the relevant configuration and then re-entering it. However, this allows for a window of time in which no policy is attached and the default action takes place. RPL provides a mechanism for an atomic change so that if a policy is redeclared, or edited using a text editor, the new configuration is applied immediately—which allows for policies that are in use to be changed without having a window of time in which no policy is applied at the given attach point.
11-17-2017 12:58 AM
12-18-2017 06:23 PM
If you edit the policy:
1. you don't have to rewrite the whole thing (of course copy and paste is always an option)
but more importantly:
2. the policy gets applied automatically, without any "downtime" or extra steps
If you just "rewrite" the policy, the old policy has to be removed first, then you have to apply the new policy. As you can imagine, this causes some "downtime" so to speak in your routing, until you've applied the new policy. In most service provider situations, this isn't acceptable.
My advice would be to always edit your routing policies.
12-19-2017 12:18 AM
We are almost always using rewrite if we need to edit the RPL and there was never a downtime.
What about you, did you see a downtime while using rewrite? If yes, in what case?
Like I write previously, edit is nice but it's not triggering the RPL everytime. I've lost a lot of time because I was using edit and BGP was not sending the routes because the RPL was not triggered. Only using rewrite did the trick.
12-19-2017 09:12 AM - edited 12-19-2017 09:14 AM
(and I just realized that I'm logged in as 'work', not jasoncrev)
Maybe I'm misunderstanding what you mean by rewrite. I've always edited in XR using a text editor.
Here is the part of the docs that I was referring to:
Attached Policy Modification
Policies that are in use do, on occasion, need to be modified. Traditionally, configuration changes are done by completely removing the relevant configuration and then re-entering it. However, this allows for a window of time in which no policy is attached and the default action takes place. RPL provides a mechanism for an atomic change so that if a policy is redeclared, or edited using a text editor, the new configuration is applied immediately—which allows for policies that are in use to be changed without having a window of time in which no policy is applied at the given attach point.
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