Skip to content

Add the ability to require unique input to custom field #8198

Closed
@K0HAX

Description

@K0HAX

NetBox version

v3.1.1

Feature type

New functionality

Proposed functionality

Currently, custom fields are never checked for unique content.
It would be nice to be able to add checks for uniqueness inside custom fields as an option to that specific custom field.

Use case

I am using custom fields to add a unique name similar to a Common Language Location Identifiers (CLLI) name for each site.
No two sites should have the same unique name from this field.

Database changes

The database would probably need a new column to track if the custom field needs a uniqueness check, and in the general case, what the scope of the uniqueness check should be (example: global, regional, site, none).

External dependencies

None

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions