Allow for multiple groups / classes for locations & sites #11950

Open
opened 2025-12-29 21:51:50 +01:00 by adam · 0 comments
Owner

Originally created by @PetitPrinc3 on GitHub (Dec 27, 2025).

NetBox version

v4.4.9

Feature type

Data model extension

Proposed functionality

Hi,

Thank you for your incredible work on netbox.

I would like to be able to add a "Room Types" field to the "location" and/or "sites" model.
This would allow one to filter the data based on fileds like : floor, room type (technical, office, ...), whatever you feel like.

Location :

I've tried to use a "Custom Field" using "Site Groups" as classes and having them in a list :

Image

However, despite this, the location object isn't "linked" to the selected site groups therefore making filtering impossible :

Image

Sites :

For sites, it is only possible to add one "Group Site". Having a list of "Group Sites" rather than a single entry could make the functionality described above operational.

Image

Thanks for your help and time !

Best

Use case

As explained above, this could be usefull to sort locations/rooms based on their "memberships".
Examples :

  • I want to only see the rooms on "floor 1"
  • I want to see the "server" rooms "on floor 3"

This is mostly relevant for topology views.

Database changes

Location :

  • New table : dcim_location_group
  • New column in dcim_location : group_ids (list of groups)

Sites :

  • Alter column in dcim_site : group_id becomes group_ids (list of groups)

External dependencies

None

Originally created by @PetitPrinc3 on GitHub (Dec 27, 2025). ### NetBox version v4.4.9 ### Feature type Data model extension ### Proposed functionality Hi, Thank you for your incredible work on netbox. I would like to be able to add a "Room Types" field to the "location" and/or "sites" model. This would allow one to filter the data based on fileds like : floor, room type (technical, office, ...), whatever you feel like. ### Location : I've tried to use a "Custom Field" using "Site Groups" as classes and having them in a list : <img width="1158" height="1223" alt="Image" src="https://github.com/user-attachments/assets/1e63df61-3ddf-4acd-ad8b-e766e7828c20" /> However, despite this, the location object isn't "linked" to the selected site groups therefore making filtering impossible : <img width="2315" height="1114" alt="Image" src="https://github.com/user-attachments/assets/ae955ba0-daea-474a-a4bc-7c8a74cd6169" /> ### Sites : For sites, it is only possible to add one "Group Site". Having a list of "Group Sites" rather than a single entry could make the functionality described above operational. <img width="1256" height="1214" alt="Image" src="https://github.com/user-attachments/assets/a6ee2b87-7bcd-4066-b480-f3eb952ce1a7" /> Thanks for your help and time ! Best ### Use case As explained above, this could be usefull to sort locations/rooms based on their "memberships". Examples : - I want to only see the rooms on "floor 1" - I want to see the "server" rooms "on floor 3" This is mostly relevant for topology views. ### Database changes ### Location : - New table : dcim_location_group - New column in dcim_location : group_ids (list of groups) ### Sites : - Alter column in dcim_site : group_id becomes group_ids (list of groups) ### External dependencies None
adam added the type: featurenetboxstatus: needs triage labels 2025-12-29 21:51:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11950