networktocode/netutils

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

ryanmerolle opened this issue · 1 comments

Environment

  • netutils version: 1.2.0

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.

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