-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
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 :
However, despite this, the location object isn't "linked" to the selected site groups therefore making filtering impossible :
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.
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