Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Custom NTC-Templates overrides similar to TTP in #275 #282

Closed
jeffkala opened this issue Dec 12, 2024 · 1 comment · Fixed by #285
Closed

Implement Custom NTC-Templates overrides similar to TTP in #275 #282

jeffkala opened this issue Dec 12, 2024 · 1 comment · Fixed by #285
Assignees

Comments

@jeffkala
Copy link
Contributor

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

  1. Custom textfsm templates for business logic.
  2. next platform support using textfsm.
@jeffkala
Copy link
Contributor Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant