10-23-2015 09:02 AM
Hello,
Recently we've grown past our TenGig capacity, so we are building a lag.
The problem is we have many many subinterfaces on our TenGig interface. So L2VPN configuration is rather large.
There are probably a hundred or more p2p and bridge groups that would have to be updated from Te0/6/0/6.x to Bundle-Ether20.x
Is there a command in the configuration or a workaround that will update these or is the only solution manual correction of each P2P/Bridge interface?
Thanks
Solved! Go to Solution.
10-24-2015 04:30 PM
There's cool config command exactly for this purpose: "replace". You can replace interface config or any pattern. There's also a "dry-run" option of the command to show you what will be done if you decide to commit the changes.
hth,
Aleksandar
10-24-2015 04:30 PM
There's cool config command exactly for this purpose: "replace". You can replace interface config or any pattern. There's also a "dry-run" option of the command to show you what will be done if you decide to commit the changes.
hth,
Aleksandar
11-11-2015 08:16 AM
Hi Aleksander,
This is good news. Do you have a link or an example you could provide? My google-fu is failing me and only seems to yield results of "commit replace" which is obviously not what I want to do.
Thanks for the reply!
11-11-2015 10:24 AM
hi Evan,
indeed, we didn't do quite well in documenting the functionality.
I've just created this document:
https://supportforums.cisco.com/document/12702266/replacing-patterns-ios-xr-router-configuration
I hope it helps.
Regards,
Aleksandar
11-11-2015 12:12 PM
Aleksander,
THANK YOU for providing the document - that is very good to have. Something we will look forward to in 5.3.1 (we are not quite there yet ;)
One last thing I would like to confirm - this replace command - it does not function like we would expect in the fact that changes are immediate? Meaning you do not need to commit to apply? (Would make sense due to the dry-run option.) Very good to know especially when the possibility of one regex mistake haiving wide effects.
11-11-2015 12:39 PM
hi Evan,
glad to hear that you found the command useful.
The command functions just like any other configuration command, i.e. it requires the "commit" to have the changes applied. The "dry-run" was added as an easy-to-use extra cautionary measure because regular expressions are very powerful but at the same if not used properly can lead to unexpected results.
Regards,
Aleksandar
11-12-2015 05:03 AM
Oh one additional note, cisco live id 2904 from this year (2015) sandiego session has a section on usability. the replace command is discussed there also with some nice examples on how to use it.
that and many more enhancements in case you're interested.
cheers!
xander
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