Data Validation Engine - add support for custom validators via GIT Repositories Integration #6243
TheBirdsNest
started this conversation in
Plugin (App) Ideas & Development
Replies: 1 comment
-
Seems reasonable to me, not sure where this would get prioritized, but in general we use and should be supportive of this pattern. I would suspect a PR would be accepted, you could use this and follow up as guides. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As a Network Engineer, I'd like to be able to apply policies/restrictions to configuration in Nautobot easily with the use of Git.
Many validation steps we want to take, are not supported with the current out-of-the-box plugin.
For example,
I want to restrict the VLAN ID someone can select, based on the selected role (if role = 'Users', VID must be between >=10, <=20).
For this a custom validator can be written, but I want to be able to create/update and manage these through the Nautobot Git Repository sync feature and not by manually changing files (or in my case rebuilding containers) that also require application restarts.
In Git Repositories, a new "Provides" would exist that includes "Data Validators".
Example Validator that can be managed through Git:
custom_rules/vlans.py:
Beta Was this translation helpful? Give feedback.
All reactions