Component template missing module_type API field #6466

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

Originally created by @ghost on GitHub (May 10, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.1

Python version

3.9

Steps to Reproduce

  1. Create a new module and module components (interface, console port, etc)
  2. Find the ID if said component and navigate to the API endpoint (for example GET /api/dcim/interface-templates/76/)
  3. The device_type is set to null and there's no module_type field

Expected Behavior

A module_type field should be present with similar information to the device_type field.

Observed Behavior

The module_type field isn't returned on API GET calls.
it should be added under the relevant component templates' fields variable
39a9ebaeee/netbox/dcim/api/serializers.py (L327)

Originally created by @ghost on GitHub (May 10, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.1 ### Python version 3.9 ### Steps to Reproduce 1. Create a new module and module components (interface, console port, etc) 2. Find the ID if said component and navigate to the API endpoint (for example `GET /api/dcim/interface-templates/76/`) 3. The device_type is set to null and there's no module_type field ### Expected Behavior A module_type field should be present with similar information to the device_type field. ### Observed Behavior The module_type field isn't returned on API GET calls. it should be added under the relevant component templates' fields variable https://github.com/netbox-community/netbox/blob/39a9ebaeee982dc787de5df3b42f66ac9fbe39d4/netbox/dcim/api/serializers.py#L327
adam added the type: bugstatus: accepted labels 2025-12-29 19:41:02 +01:00
adam closed this issue 2025-12-29 19:41:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6466