Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 06-03-2021, 10:09 AM
Cosmos Cosmos is offline
Registered User
Join Date: Jun 2021
Posts: 1
I'm working on a python3 library for Cisco devices


I started working on this project a few weeks ago. My day job involves doing repetitive tasks on a wide variety of Cisco OS's (XE, XR, NXOS, ASA, etc.) and writing scripts that work on all those different systems was getting complex and annoying.

Basically, I wanted to make a Python3 library that makes it easier for me to write OS "agnostic" scripts quickly, with functions that handle common tasks like entering "global config" mode and configuring interfaces.

Let me be honest--I am no expert python programmer. I understand enough to hack together code that is useful for my job, but I know that sometimes my code isn't the cleanest or could be designed better. So far I've done my best with this and I am open to criticism and guidance!

I included an example script called s_template.py in the root of my project, look at this first as an example of how one could use my libraries.

I know there are similar projects out there--but none of the ones I could find were for Python 3.

Github link: https://github.com/matthewspangler/s...isco-shortcuts
Reply With Quote

cisco , python3

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 06:12 AM.