This repository contains sources for YAML demos shown during the Network Automation workshop and Ansible online course:
- y2py is a Python script that reads the YAML file specified on the command line, reports any parsing errors produced by Python YAML parser, and prints Python data structure equivalent to input YAML file
- y2js is a YAML-to-JSON converter: it prints JSON data structure equivalent to YAML file specified on the command line
- y2pl is the Perl version of y2py
Python modules needed to run y2py are installed with the install script
Perl modules needed to run y2pl are installed with the install-perl-cpan.sh script
Perl version of YAML parser does not parse a single-value YAML document. Running y2pl on 0-Value.yml will results in an error.
- Ansible for Networking Engineers online course (contents) or
- Building Network Automation Solutions online course (contents)