nautobot-app-data-validation-engine icon indicating copy to clipboard operation
nautobot-app-data-validation-engine copied to clipboard

Create the ability to validate Tags via DataComplianceRule

Open grahamjohnston opened this issue 1 year ago • 3 comments

Environment

  • Nautobot version: >2.2
  • nautobot-data-validation-engine version: >3.1

Proposed Functionality

I want to be able to create a DataComplianceRule that can enforce the presence of Tags on an object. Right now, if the tag is missing the rule can raise an alert and fail. If the tag is present, the rule can see that and not raise and error. If the tag is missing, and you're trying to add it, via the webUI, the Tag won't yet have been applied yet when the rule is run against the object and thus it fails even though you're trying to fix the issue.

Use Case

My example use cases include:

  • Have locations of type site to have a tag from a list that identifies site ownership
  • Attached a tag to an interface that identifies a level of criticality that can be passed to a downstream network monitoring system.

grahamjohnston avatar May 24 '24 15:05 grahamjohnston

See also #1.

glennmatthews avatar May 31 '24 20:05 glennmatthews

Should we close this as a duplicate of #1? Seems like this is part of a bigger feature request for supporting validation of M2M and similar fields that aren't updated yet in the model's save method?

gsnider2195 avatar Dec 20 '24 19:12 gsnider2195

Based on #1 existing to deal with the same issue, then yes, I'm certainly fine with this issue being closed.

grahamjohnston avatar Dec 20 '24 19:12 grahamjohnston