Skip to content

Unique device role #19827

Closed
Closed
@Crubumble

Description

@Crubumble

Deployment Type

Self-hosted

NetBox Version

v4.3.3

Python Version

3.10

Steps to Reproduce

  1. Add a new device role (/dcim/device-roles/add/) named "Building Automation"
  2. Add a further device role named "camera" with "Build Automation" as parent
  3. Add a further device role named "camera" with "Build Automation" as parent
  4. Add a further device role named "camera" with no parent

Expected Behavior

Creating a device role with the same hierarchy and name (and description) should not be possible.
Therefore, only the device role created under step 1,2 and 4 should be possible.

Observed Behavior

All device roles were created.
Device roles are created even if the same role exists already.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions