Filtering cables by site slug or rack name does not work #5761

Closed
opened 2025-12-29 19:32:21 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 10, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.0

Python version

3.8

Steps to Reproduce

  1. Create a cable between two devices within a rack at a site
  2. Attempt to filter the cables list by site slug (e.g. ?site=foo) or by rack name (e.g. ?rack=bar).

Expected Behavior

The cables list should return only cables which connect to a device within the specified site/rack.

Observed Behavior

The filters have no effect. This is because the site and rack filters are defined as MultiValueNumberFilters on CableFilterSet.

Originally created by @jeremystretch on GitHub (Dec 10, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.0 ### Python version 3.8 ### Steps to Reproduce 1. Create a cable between two devices within a rack at a site 2. Attempt to filter the cables list by site slug (e.g. `?site=foo`) or by rack name (e.g. `?rack=bar`). ### Expected Behavior The cables list should return only cables which connect to a device within the specified site/rack. ### Observed Behavior The filters have no effect. This is because the `site` and `rack` filters are defined as MultiValueNumberFilters on CableFilterSet.
adam added the type: bugstatus: accepted labels 2025-12-29 19:32:21 +01:00
adam closed this issue 2025-12-29 19:32:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5761