Network CLI filters
To convert the output of a network device CLI command into structured JSON
output, use theansible.netcommon.parse_clifilter:
Theansible.netcommon.parse_clifilter will load the spec file and pass the command output
through it, returning JSON output. The YAML spec file defines how to parse the CLI output.
The spec file should be valid formatted YAML.  It defines how to parse the CLI
output and return JSON data.  Below is an example of a valid spec file that
will parse the output from theshowvlancommand.
The spec file above will return a JSON data structure that is a list of hashes
with the parsed VLAN information.
The same command could be parsed into a hash by using the key and values
directives.  Here is an example of how to parse the output into a hash
value using the sameshowvlancommand.
Another common use case for parsing CLI commands is to break a large command
into blocks that can be parsed.  This can be done using thestart_blockandend_blockdirectives to break the command into blocks that can be parsed.