Implement Custom NTC-Templates overrides similar to TTP in #275
Closed this issue · 1 comments
jeffkala commented
Environment
- Nautobot version: 2.2+
- nautobot-device-onboarding version: next
Proposed Functionality
TTP in #275 setup the datasource for /parsers/textfsm/
to allow for custom templates and/or override templates to be based in. The actual logic for the textfsm templates loading wasn't introduced yet. Needs to be introduces to look at site-packages, look in git repo and do some kind of merge.
Use Case
- Custom textfsm templates for business logic.
- next platform support using textfsm.
jeffkala commented
ntc-templates parse
method has a try_fallback kwarg that should make this somewhat easy to implement.
parse_output(platform=None, command=None, data=None, template_dir=None, try_fallback=False)
parse_output(platform=None, command=None, data=None, template_dir=None, try_fallback=False)