Skip to content

Network Automation

My journey with Network & Cloud Automation

Menu
  • Beginner
  • DevOps-NetDevOps
  • Network Automation
    • Docker
    • Python Libraries
      • NAPALM
      • Netmiko
      • Jinja2
      • Scrapli
      • Yang
  • Cloud Automation
    • Terraform
  • Python 🐍 Tips and Tricks
Menu

Category: Python 🐍 Tips and Tricks

list comprehension

Python List Comprehensions

Posted on October 28, 2021October 26, 2021 by Gurpreet Kochar

From the perspective of a network engineer who has just started out on their journey to learn python and network automation, one of the first intimidating concepts that they are likely to come across is the list comprehensions. In this post we will try and cover the basics of python list comprehensions If you have…

Read more
yaml

What is YAML For Network Engineers

Posted on September 24, 2021August 29, 2021 by Gurpreet Kochar

YAML Ain’t Markup Language. From official documentation, YAML is a data serialization standard for all programming languages. Let’s break it down to understand what does MarkUp and data serialization standard really means and the relevance of YAML for network engineers. Q1:- What is a Markup Language? Ans:- A Markup Language is not really a language…

Read more
Multithreading vs Multiprocessing vs Asynchronous

[Practical] Multithreading vs Multiprocessing vs Asynchronous

Posted on September 2, 2021September 12, 2021 by Gurpreet Kochar

We have already seen in theory how all of the above differ and where each of them is applicable and useful. In this post, I will try to demonstrate the same concept using practical examples. I could have spun up tens of devices in GNS3/Eve-ng but I figured just using manual delays to simulate the…

Read more
asyncio

[Theory] Multithreading vs Multiprocessing vs AsyncIO

Posted on August 31, 2021September 1, 2021 by Gurpreet Kochar

I have been using a multi-threaded version of the synchronous codes that we usually see to interact with devices and for over a year now and I have a network of nearly 28k devices (routers / switches / WLCs / FWs ) that I need to manage. With that multithreaded version, I was able to…

Read more
openpyxl for network engineers

How to read write excel using python openpyxl

Posted on August 27, 2021August 25, 2021 by Gurpreet Kochar

In the previous articles, we have seen how to leverage pandas and csv modules for reading and writing csv and excel files. This post will talk about how to read write excel using python openpyxl. Although pandas is a much more robust package to deal with excel files or tabular data, it has its own…

Read more
python pandas parse write to excel

Data Analysis with Python For Network Engineers.

Posted on August 18, 2021August 18, 2021 by Gurpreet Kochar

Excel is one of the primary data sources that we network engineers have to deal with. While you will find a lot of people with very proficient skills with excel when it comes to manipulating data and making sense of it but now there is a need to be able to programmatically access the data…

Read more

How to read write csv with python for Network Automation Part 3

Posted on August 16, 2021August 20, 2021 by Gurpreet Kochar

We have covered how to use csv modules in the previous two posts. In this post, we will try to make the job easier using the python pandas library to read write csv with python for Network Automation. In my opinion, pandas is the one-stop-shop for all needs when you are dealing with tabular data…

Read more
Netmiko TEXTFSM

How to Automate Network Devices using Python Netmiko Part 2

Posted on August 11, 2021January 30, 2022 by Gurpreet Kochar

In Part 1 of this series, we saw how to establish a connection with network devices using python netmiko and fetch command outputs. In this post, we will see how to enter into enable mode and also configure cisco devices using python netmiko programmatically. If you are new to netmiko, please read Part1 here For…

Read more
python pandas parse write to excel

How to read write Excel with python for Network Automation Part 2

Posted on August 10, 2021August 7, 2021 by Gurpreet Kochar

We have already seen how to work with and manipulate CSV files with python for network automation. This post is going to talk about ways you can manipulate excel for network automation using python. Please read How to read write Excel with python for Network Automation Part 1 From one of the previous posts, we…

Read more
automation excel with python

How to read write Excel with python for Network Automation Part 1

Posted on August 7, 2021August 7, 2021 by Gurpreet Kochar

We have already seen how to work with and manipulate CSV files with python for network automation. This post is going to talk about ways you can manipulate excel for network automation using python. There are a lot of modules available that can interact with excel programmatically using python. To name a few:- xlrd –…

Read more
  • 1
  • 2
  • Next
All Blog Posts
My Resume

Upcoming Posts

Sorry - nothing planned yet!

Recent Posts

  • How to backup configuration to TFTP Server using Ansible – Part II
  • How to backup network devices using Ansible – Part I
  • Netmiko SSH Proxy/JumpServer
  • A short note on SASE
  • Understanding Ansible

Recent Comments

  1. Gurpreet Kochar on Netbox Docker Installation [Quick and Easy]
  2. rayk32 on Netbox Docker Installation [Quick and Easy]
  3. Python API Using FASTAPI - For Network Engineers - Part I – on Python API Using FASTAPI – For Network Engineers – Dynamic Routes – Part II
  4. Python API Using FASTAPI - For Network Engineers - Dynamic Routes - Part II – on Python API Using FASTAPI – For Network Engineers – Part I
  5. Netbox Docker Installation [Quick and Easy] – Network Automation on Docker for Network Engineers Part V – Docker Compose

Archives

  • September 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
Topic Request / Suggestion
Loading
© 2023 Network Automation | Powered by Minimalist Blog WordPress Theme
Network Automation
Proudly powered by WordPress Theme: MinimalistBlogger.
 

Loading Comments...