Validate JSON data using cerberus

Validate JSON data using cerberus

During some coding work for my day job, I require a way to validate the format (or schema) for some JSON data. If you need a quick refresh, what JSON is and how to work with it in python, take a look at one of my earlier posts about python dictionaries and JSON. As an additional requirement, the validation step should include default data for certain keys that are not found in the original data.
The Use Case for the Network Configuration Generator

The Use Case for the Network Configuration Generator

Today I like to describe the target Use Case, functionality and structure of the Network Configuration Generator. Furthermore, I like to describe the Integration and API capabilities that should be implemented. At the end of this post, I discuss some limitations and functionalities that are considered out-of-scope for the first version.
Custom filters for a Jinja2 based Config Generator

Custom filters for a Jinja2 based Config Generator

This week, I’ll show you how to integrate custom filters into your Jinja2 templates. The use case from this post is based on the idea of a feature-centric and vendor independent parameter set for the configuration of network devices. We will see how custom filters could be helpful to generate configurations for multiple vendors based on a common parameter set.