Skip to content

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

@PetitPrinc3

Description

@PetitPrinc3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    netboxstatus: needs triageThis issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions