Skip to content

hierarchical device role does not report device count correctly #19970

@chris240189

Description

@chris240189

Deployment Type

Self-hosted

NetBox Version

v4.3.4

Python Version

3.12

Steps to Reproduce

  1. Create a number of device roles and assign devices to them
  2. Create a new device role to be used as parent
  3. Assign the role from step 2 as parent to the roles from step 1
  4. Check the list of device roles and the number of devices

I was also able to replicate this on demo.netbox.dev

Image

Expected Behavior

The parent device role should show and count all direct and hierarchical assigned devices.

Observed Behavior

The device role device count only considers directly assigned devices.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: 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