Installed module missing from API representation of module bay #6594

Closed
opened 2025-12-29 19:42:45 +01:00 by adam · 1 comment
Owner

Originally created by @jeremystretch on GitHub (Jun 23, 2022).

NetBox version

v3.2.5

Python version

3.8

Steps to Reproduce

  1. Create a module bay
  2. Install a module into the module bay
  3. View the module bay using the REST API (e..g. GET /api/dcim/module-bays/123/)

Expected Behavior

The installed module should be included as installed_module, similar to installed_device for device bays.

Observed Behavior

The field has been omitted from the REST API serializer for the ModuleBay model. It's clear this was intended for the initial implementation, however the code for including the field is currently commented out, and no proper nested serializer was created. It's likely this was an oversight during the development and evaluation periods.

Originally created by @jeremystretch on GitHub (Jun 23, 2022). ### NetBox version v3.2.5 ### Python version 3.8 ### Steps to Reproduce 1. Create a module bay 2. Install a module into the module bay 3. View the module bay using the REST API (e..g. `GET /api/dcim/module-bays/123/`) ### Expected Behavior The installed module should be included as `installed_module`, similar to `installed_device` for device bays. ### Observed Behavior The field has been omitted from the REST API serializer for the ModuleBay model. It's clear this was intended for the initial implementation, however the code for including the field is currently commented out, and no proper nested serializer was created. It's likely this was an oversight during the development and evaluation periods.
adam added the type: bugstatus: accepted labels 2025-12-29 19:42:45 +01:00
adam closed this issue 2025-12-29 19:42:45 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 23, 2022):

Fixed in PR #9574

@jeremystretch commented on GitHub (Jun 23, 2022): Fixed in PR #9574
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6594