Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction of Device Role Groups #18245

Open
jonzey0 opened this issue Dec 17, 2024 · 2 comments
Open

Introduction of Device Role Groups #18245

jonzey0 opened this issue Dec 17, 2024 · 2 comments
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application

Comments

@jonzey0
Copy link

jonzey0 commented Dec 17, 2024

NetBox version

v4.1.7

Feature type

Data model extension

Triage priority

N/A

Proposed functionality

Currently all Device Roles are in a "flat" hierarchy. In order to segregate the Device Roles based on function, you may need multiple roles of a similar type if you want to segregate them accordingly.

I'm proposing that Device Role Groups be introduced to provide a level of hierarchy to Device Roles, much in a similar way to how Tenant Groups provide a similar function to how Tenants can be grouped.

Use case

In an environment where there are a lot of different device roles, it may be useful to be able to group them much like in the same way Tenants and Tenant Groups, or Contacts and Contact Groups are grouped today.

I can envisage that (for example) you may have a "Rack Infrastructure" Device Role Group which then has roles specific for "Patch Panel", "Power" etc.

Another example may be Network Switches, where you may want to segregate the Device Role based on function, while keeping them all under a Network Switch parent group.

Database changes

Not a DB expert, but I suspect it would likely require the Device Role field to be changed to accommodate this function and the introduction of a non-mandatory Device Role Group field as well.

External dependencies

No response

@jonzey0 jonzey0 added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Dec 17, 2024
@ITJamie
Copy link
Contributor

ITJamie commented Dec 17, 2024

This would be great for filtering devices down to just "networking" devices.

Would you in-visage it as group > role or could it be like locations where it could be deeply nested

Group > group > device role

It would be nice to have "networking" then "switches" as a sub group for example which then multiple roles inside switches "access switches" "management switches" etc.

@jonzey0
Copy link
Author

jonzey0 commented Dec 17, 2024

This would be great for filtering devices down to just "networking" devices.

Would you in-visage it as group > role or could it be like locations where it could be deeply nested

Group > group > device role

It would be nice to have "networking" then "switches" as a sub group for example which then multiple roles inside switches "access switches" "management switches" etc.

Yeah, the Sub-Group option is what I had in mind. Depending on the use case then the user can segregate them as they see fit in the tree structure.

Can see that being the most flexible outcome, with this all being optional anyway, much like Location Groups today are an optional field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants