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

Add location to rack clone fields #16786

Open
alehaa opened this issue Jul 2, 2024 · 0 comments
Open

Add location to rack clone fields #16786

alehaa opened this issue Jul 2, 2024 · 0 comments
Labels
complexity: low Requires minimal effort to implement status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: feature Introduction of new functionality to the application

Comments

@alehaa
Copy link
Contributor

alehaa commented Jul 2, 2024

NetBox version

v4.0.6

Feature type

Change to existing functionality

Proposed functionality

When creating or editing a device, all racks in a location are selectable, including racks in child locations. If you select a rack in a child location, saving the device is rejected with this error message:

Rack RACK01 does not belong to location PARENT.

Therefore, I suggest that all racks of a location (including child locations) can be selected in the form. When saving, the location of the device will be replaced by the location of the rack, thus automatically correcting it if needed.

Steps to reproduce:

  • Create location PARENT
  • Create child location CHILD
  • Create rack RACK01 in CHILD
  • Create new device. Select location PARENT and RACK01 as rack.
  • Save

Use case

The structure of the locations is entirely up to the NetBox user. A typical scenario could be to have parent locations for the room and child locations for the rack rows named "R1", "R2", ... in each room. Searching for the room is quite easy because it is unique. Finding the right rack row is not as easy, as there are several with the same name.

Also, it seems a bit odd that the racks are selectable in the UI and the backend does not accept the user's choice.

Database changes

None

External dependencies

None

@alehaa alehaa added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Jul 2, 2024
@DanSheps DanSheps changed the title Copy device location from rack Add location to rack clone fields Jul 8, 2024
@DanSheps DanSheps added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation complexity: low Requires minimal effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer labels Jul 8, 2024
@DanSheps DanSheps removed their assignment Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: low Requires minimal effort to implement status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants