hierarchical device role does not report device count correctly #11420

Closed
opened 2025-12-29 21:45:02 +01:00 by adam · 0 comments
Owner

Originally created by @chris240189 on GitHub (Jul 29, 2025).

Originally assigned to: @jeremystretch on GitHub.

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.

Originally created by @chris240189 on GitHub (Jul 29, 2025). Originally assigned to: @jeremystretch on GitHub. ### 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 <img width="1184" height="1502" alt="Image" src="https://github.com/user-attachments/assets/ce7c5c71-8eff-4b09-8526-1d4f7aad879d" /> ### 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.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:45:02 +01:00
adam closed this issue 2025-12-29 21:45:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11420