Network Automation Example - Finditer With Defaultdict

Submitted by zeroslash on Sat, 04/27/2019 - 01:40

In this example, I explored another approach to using Finditer to count network interfaces in my last post. I recommend you check that out first before going through this one.

Here I combined re.finditer() with defaultdict() instead, keeping the matched patterns associated with the keyword we are looking for.

Network Automation Example - Finditer With Counter

Submitted by zeroslash on Thu, 12/27/2018 - 11:10

Still using the same example data that I've been using in my previous Network Automation examples, this time around I try out a counting scenario.

In this example, I wanted a quick and easy way to just zip through the text and count how many interfaces of a certain type I will find.

I'm using the re.finditer() function to give me an iterable of all matches (line 16).

The Difference Between Pings To vs Pings Through a Network Device

Submitted by zeroslash on Mon, 10/22/2018 - 08:35

Have you ever encountered a situation wherein you did a continuous ping to a network device and saw packet loss, but did another continuous ping through it towards a device behind it and saw no packet loss? This can be a more common scenario in network troubleshooting than you might think.

Let's look at the below example diagram.


Skills as an Investment And Skill Portability For Network Engineers

Submitted by zeroslash on Sat, 09/22/2018 - 12:39

If you're new to this career in Networking I'm just letting you know that it's a bigger world out there. This is one of the most important things I realized when I moved from my first to the second job as a Network Engineer. If you already have a few years experience as a Network Engineer then perhaps I can provide you with some ideas to consider (possibly rethink your career) based on what I’m about to talk about here.