Intro to Jinja2
What is Jinja2 Jinja2 is a templating language that was originally used as part of the Flask python web framework. From the Jinja2 website Jinja2 is a full featured template engine for Python. It...
View ArticleMore Jinja – Working with YAM as an Input
Jinja2 Simple YAML Example¶ We’re now going to take a look at grabbing a file from the hard drive written in YAML syntax. YAML is arguably the most human readable data serialization format which...
View ArticleImplenting Idempotency using HPE IMC
Try saying that five times fast. What if those VLANS already exist? There’s a concept called idempotency which can be loosely explained as Make sure it’s like this. If it’s not like this, make it...
View ArticleSerial numbers how I love thee…
No one really like serial numbers, but keeping track of them is one of the “brushing your teeth” activities that everyone needs to take care of. It’s like eating your brussel sprouts. Or listening to...
View ArticleJinja2 and… Powershell? Automation(ish) Microsoft DHCP
Most of us have home labs, right? I’m in the middle of doing some zero touch provisioning testing, and I had the need to create a bunch of DHCP scopes and reservations, some with scope specific...
View ArticlePseudo-Math to Measure Network Fragility Risk
Some of you may have heard me ranting on Packet Pushers on stupid network tricks and why we continue to be forced to implement kluges as a result. I made some comment about trying to come up with some...
View ArticleAuto Network Diagram with Graphviz
One of the most useful and least updated pieces of network documentation is the network diagram. We all know this, and yet we still don’t have/make time to update this until something catastrophic...
View ArticleShedding the Lights on Operations: REST, a NMS and a Lightbulb
It’s obvious I’ve caught the automation bug. Beyond just automating the network I’ve finally started to dip my toes in the home automation pool as well. The latest addition to the home project was the...
View ArticleHey Alexa, Turn my lab on!
TL/DR Put together a custom Alexa Skill so I can turn switches and routers off in my lab as shown in the video here. Feels pretty great. As most of my twitter followers have noticed, I’ve been doing...
View ArticlePlaying with Arista eAPI – Dynamic VLAN Assignment-ish
A note Before we get started, let me first say that just because we can, doesn’t mean we should. I got a request to show an example of how dynamic VLAN assingment based on mac-address could work and...
View Article