Category: Network Automation

  • Jinja2 is a template processing toolkit which allows us to create and render text templates.It is a text based templating system. It renders a template using variable replacement, tags (conditional, lopping, inheritance, macros) and filters. In this example, I will use Jinja2 to automatically generate a network switch configuration file. Folder and file Structure Jinja2…

  • XML (eXtensible Markup Language) is a data format used to store and exchange structured data. Unlike JSON and YAML, XML uses tags to define data. It also works with YANG models. XML Syntax XML uses opening and closing tags to describe data. Basic Rules: Data is stored between tags Every tag must have a closing…

  • YAML (YAML Ain’t Markup Language) is a human-readable data format widely used in network automation. Compared to JSON, YAML is easier to read and write, especially for large configurations. YAML Syntax YAML uses indentation instead of brackets to define structure. Key Rules: Case-sensitive Indentation is very important No { } or [ ] Uses :…

  • JSON (JavaScript Object Notation) is one of the most important data formats in modern networking.It is widely used in REST APIs, SD-WAN controllers, automation tools, and network management systems. In lists, we can have multiple entries that are indexed starting from 0 up to n.Access to list elements is based on their index number. Another…