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

Filter devices by rack #1137

Closed
candlerb opened this issue May 4, 2017 · 3 comments
Closed

Filter devices by rack #1137

candlerb opened this issue May 4, 2017 · 3 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@candlerb
Copy link
Contributor

candlerb commented May 4, 2017

Issue type: feature request

I would like to be able to do a bulk update of devices in a particular rack, e.g. to set a custom attribute.

However right now:

  • If you browse devices, you can filter by Rack Group but not by Rack
  • If you drill down to the Rack itself, it draws the racked devices and lists the unracked devices, but doesn't have a bulk update option (e.g. a tab to show Devices with checkboxes beside them)

I think the simplest solution is to add a new filter on the RHS of the Device page (/dcim/devices/) to filter on Rack - this should include option None to see unracked devices.

@Armadill0
Copy link

As a workaround you can currently go to the rack and click on the devices count at the "devices" section. This leads to the following URL:
https://yournetbox/dcim/devices/?rack_id=

You can also append the "rack_id" parameter to the already existing filter-parameters of the device page to manually filter devices for a specific rack, e.g.:
https://yournetbox/dcim/devices/?q=&role=server&status=&mac_address=&cf_legacy_hardware=&cf_serviceid=&rack_id=

@candlerb
Copy link
Contributor Author

candlerb commented May 4, 2017

That works, thanks! And I note you can select multiple racks with &rack_id=X&rack_id=Y

However, I'd still like the filter available in the UI. It would be a lot easier to use.

@jeremystretch jeremystretch added the type: feature Introduction of new functionality to the application label May 4, 2017
@jeremystretch
Copy link
Member

We should be able to make this work similar to the nested filters for manufacturer and device type on the devices list.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

3 participants