In Case You Missed it
How to Use Jinja Custom Filters within NornirIntroduction If you’ve automated the generation of your network configuration, chances are you’ve used Jinja. If not, Jinja is a templating engine used to generate text-based files from data input. Below shows a quick example: One
Introduction
If you've automated the generation of your network configuration, chances are you've used Jinja. If not,
Jinja is a templating engine used to generate text-based files from data input.
Below shows a quick example:
One feature that Jinja provides is filters. Filters allow you to
In Case You Missed it
Python Tip - How to Dynamically Assign AttributesToday I want to share with you a small tip on how to dynamically set class attributes within Python. Before we do, I just want to point out that this is actually something I learnt a few months
Today I want to share with you a small tip on how to dynamically set class attributes within Python. Before we do, I just want to point out that this is actually something I learnt a few months back after going through the Nornir code base. Therefore true kudos goes
Updates from Packet Coders
Before we dive in just a few updates on what's happening in the Packet Coders membership ...
🔥 Intro to APIs tech session scheduled for July 5th.
🔥 Automating ACLs with Caprica tech session scheduled for July 20th.
In Case You Missed it
A Quick Way to
The other day I was asked:
How do I get usernames and passwords into my Python scripts? For example to use with Netmiko, Scrapli or Nornir.
The simple answer to this is the library python-dotenv.
Whats python-dotenv?
python-dotenv is a library that loads your environment variables from a .env file.
Updates from Packet Coders
Before we dive in just a few updates on what's happening in the Packet Coders membership ...
🔥 NAPALM 101 tech session scheduled for June 15th.
🔥 Intro to PyScript with Gary Woodward tech session scheduled for June 22nd.
🔥 Network Automation with Go tech session recording added
Today I want to talk about something that I have been enjoying and adopting more and more over the last 6 months, which is using the code as a form of documentation/source of truth for open-source projects/code.
What do I mean by this? By this, I simply mean,
5 min read
Subscribe to our newsletter and stay updated.
Don't miss anything. Get all the latest posts delivered straight to your inbox.