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

Finding devices in Racks which are "Non-Racked" (no position) #2852

Closed
candlerb opened this issue Feb 4, 2019 · 3 comments
Closed

Finding devices in Racks which are "Non-Racked" (no position) #2852

candlerb opened this issue Feb 4, 2019 · 3 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@candlerb
Copy link
Contributor

candlerb commented Feb 4, 2019

Environment

  • Python version: 3.5.2
  • NetBox version: 2.5.5

Proposed Functionality

I would like to be able to identify all devices in a site which are in racks but are "non-racked" - i.e. they have been assigned to a rack but have no rack position recorded. Examples would be devices on shelves.

Currently the the way I am doing this is to browse to the detail page for each rack in turn, and look at the the list of non-racked devices down the page. This is tedious across many racks.

I have thought of some possible approaches:

  • A new search filter, e.g. /dcim/devices/?position=null. This would make the search column even busier than it already is.
  • In the Devices list, change the "rack" column to show "rack and position": e.g. instead of "407" show "407 U34 F", but non-racked devices would show as just "407". Then if you sort on this column, you'd see all the devices grouped by rack, and the non-racked ones grouped together too
  • In the Rack Elevations view, show a list of the non-racked devices underneath each rack

Use Case

  • Rack Elevations are a handy visual guide to the equipment in each rack, but are missing information about non-racked equipment within each rack, so don't provide a complete list of all the devices
  • Quick data quality check - identify devices which should have been given a position

Database Changes

None

External Dependencies

None

@candlerb
Copy link
Contributor Author

candlerb commented Feb 4, 2019

I'm not looking for rack_id=null. I want to search for devices which have been assigned a rack, but not a position within the rack.

These are the ones listed as "Non-Racked Devices" on the detail page for a given rack /dcim/racks/<id>/

@candlerb candlerb changed the title Finding unracked items Finding devices in Racks which are "Non-Racked" (no position) Feb 4, 2019
@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Feb 6, 2019
@jeremystretch
Copy link
Member

There seems to be a limitation in django_filters where it won't allow a null value for a NumberFilter. Not sure how best to get around that.

@candlerb
Copy link
Contributor Author

candlerb commented Apr 5, 2019

This now works if I manually construct a URL like /dcim/devices/?site=<name>&position=null to find these devices in a site. But there doesn't seem to be a way to do this via the UI in the Search box. (Netbox 2.5.9)

@lock lock bot locked as resolved and limited conversation to collaborators Jan 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants