Incorrect representation of installed module when listing module bays using REST API brief mode #9287

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

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

Originally assigned to: @abhi1693 on GitHub.

Deployment Type

NetBox Cloud

NetBox Version

v3.7.3

Python Version

3.11

Steps to Reproduce

  1. Create at least one module bay on a device
  2. Install a module on that bay
  3. Visit /api/dcim/module-bays/
  4. Visit /api/dcim/module-bays/?brief=true

Expected Behavior

The serialized representation of the module bay should include an installed_module field in both responses, with a representation of the installed module.

Observed Behavior

The installed_module field is absent when brief mode is enabled. There is instead an empty module field.

Originally created by @jeremystretch on GitHub (Feb 23, 2024). Originally assigned to: @abhi1693 on GitHub. ### Deployment Type NetBox Cloud ### NetBox Version v3.7.3 ### Python Version 3.11 ### Steps to Reproduce 1. Create at least one module bay on a device 2. Install a module on that bay 3. Visit `/api/dcim/module-bays/` 4. Visit `/api/dcim/module-bays/?brief=true` ### Expected Behavior The serialized representation of the module bay should include an `installed_module` field in both responses, with a representation of the installed module. ### Observed Behavior The `installed_module` field is absent when brief mode is enabled. There is instead an empty `module` field.
adam added the type: bugstatus: acceptedseverity: medium labels 2025-12-29 20:47:51 +01:00
adam closed this issue 2025-12-29 20:47:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9287