Archives For Python

This week I made great progress with my VRFSearchTool.  I’m still not ready to push it to GitHub just yet, so I thought I’d blog a little bit about how it’s coming along.

While working through the functions I realized that I could better streamline the flow of the application by moving some of the functions around.  Originally, the application design did not check for the presence of the “routers.txt” file until later in the program.  The more I thought about this, the more backwards this seemed.  The “routers.txt” file is required by the program to know which routers to log into.  This is a requirement, if you plan on updating the index of VRF names in your environment.

Continue Reading…

I’ve begun working on a new project entitled VRFSearchTool.

Put simply, this is a Python application that allows a user to search for a VRF name and returns the hostname/router of the gateway on which it is configured.

I regularly have the need to locate a VPN tunnel configuration across multiple routers and lack a quick-and-easy way determine which router this tunnel is configured on without using other slow or inconvenient means. The idea is that this tool will provide a (very) basic means of maintaining an index of all configured VRFs throughout a Cisco environment and provide the user with the ability to search for those VRFs.

Continue Reading…

I’ve updated RunRouterCommand.py to version 1.08.

Changes in this version:

  • Updated error checking to include validating `commands.lst` file exists.

See my GitHub Repository for this project to learn more.

I’ve updated DownloadRouterConfig.py to version 2.15.

Changes in this version:

  • Updated the file open operation to specify opening the routers.lst file as read only.
  • Minor corrections to the IOError message.

See my GitHub Repository for this project to learn more.