NetBox 3.x - Unique Tenant name #17257
Unanswered
moseisleydk
asked this question in
Help Wanted!
Replies: 1 comment
-
I think that youre missing trailing commas here. Try this:
If that doesnt work then you might need commas after your class names. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
V3.x har builtin support for unique Tenant Group name, but not unique tenant name....
I have some Device Validators as this:
class UniqueSerial(CustomValidator):
CUSTOM_VALIDATORS = {
'dcim.device': (
UniqueSerial()
)
}
So I would expect this to work:
class UniqueTenantName(CustomValidator):
CUSTOM_VALIDATORS = {
'dcim.device': (
UniqueSerial()
),
'tenancy.tenant': (
UniqueTenantName()
)
}
But I get the error (page):
<class 'TypeError'>
'UniqueTenantName' object is not iterable
Python version: 3.11.4
NetBox version: 3.7.3
Plugins:
netbox_secrets: 1.10.2
netbox_topology_views: 3.9.1
Beta Was this translation helpful? Give feedback.
All reactions