pyMultiChange and pyRouterLib Updates

I recently had a request to combine the SSH and TELNET functionality on my pyMultiChange scripts, as they share a lot of code. I thought that this was a reasonable request, so I started that process today.

First off, I updated the pyRouterLib to be more pep8 complaint. Once that was updated, I tossed the library into the pyMultiChange project, for consumption.

Currently, ‘telnet-multi.py’ and ‘ssh-multi.py’ are still available, but I plan on phasing them out, after I test ‘multi.py’ more.

Here is the code of the new ‘args’ library:

Next, Here is the combined functionality of the multi change script, called multi.py:

Feel free to fork it, make changes, and submit pull requests to either project. I welcome any feedback!

Share on FacebookTweet about this on TwitterShare on LinkedInShare on RedditEmail this to someone

February 2, 2015

Posted In: Cisco Administration Python Scripting, Python Tips