networktocode / netutils

Python library that is a collection of functions and objects for common network automation tasks.
https://netutils.readthedocs.io/
Other
212 stars 48 forks source link

When using parsers for functions like compliance, & using files, select parser based on RANCID-CONTENT-TYPE #147

Open ryanmerolle opened 1 year ago

ryanmerolle commented 1 year ago

Environment

Proposed Functionality

Instead of forcing users to enter the parser/platform for a particular function like compliance, when files are specified for the backup and/or intended it would be great to use the RANCID-CONTENT-TYPE if found in the file.

Use Case

This is a long shot, and probably not worth the ROI, but I figured I share before letting it leave my mind.

A lot of operators backup configurations and append the RANCID-CONTENT-TYPE and/or do the same in their configuration generation so they can pass this helper to tools like batfish.

itdependsnetworks commented 1 year ago

I’m open to this idea, we do something similar in schema validator. Would likely use another function to be the entry point, but makes sense