Remove the device_role & device_role_id filters for devices #9223

Closed
opened 2025-12-29 20:47:14 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Feb 9, 2024).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Remove the following filters for devices:

  • device_role (replaced by role)
  • device_role_id (replaced by role_id)

Justification

The device_role field on the Device model was renamed to role under #6391 in NetBox v3.6. These filters were retained for backward compatibility through v3.7 but are now obsolete.

Impact

Any API consumers still using these filters will need to be updated to use the new filters listed above.

Originally created by @jeremystretch on GitHub (Feb 9, 2024). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Remove the following filters for devices: - `device_role` (replaced by `role`) - `device_role_id` (replaced by `role_id`) ### Justification The `device_role` field on the Device model was renamed to `role` under #6391 in NetBox v3.6. These filters were retained for backward compatibility through v3.7 but are now obsolete. ### Impact Any API consumers still using these filters will need to be updated to use the new filters listed above.
adam added the status: acceptedtype: deprecationbreaking change labels 2025-12-29 20:47:14 +01:00
adam closed this issue 2025-12-29 20:47:14 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9223