Description
NetBox version
v.3.6.5
Feature type
Change to existing functionality
Proposed functionality
Extend customvalidators with an additional variable - request user details
Use case
It would be great it customvalidators had a way to check what users are making the request. in some situations, it can make sense to allow one user/usergroup/API integration the ability to skip a specific validation.
for example we wish to use an ipaddress validator to make sure rfc 1918 ip's don't end up in the global vrf, however there is one particular api integration that is going to take quite awhile to update to support vrf lookup's, in the meantime we want to stop any other rfc 1918 ip's getting added to the global vrf. being able to write the validator with an exclusion for a particular user would be great.
I understand that sometimes the supplied user would also need to be None/False as changes from nbshell wouldn't have an attached user.
Database changes
No response
External dependencies
No response