_choices missing PORT_TYPE_CHOICES, CABLE_TERMINATION_TYPE_CHOICES, etc #2271

Closed
opened 2025-12-29 17:24:23 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Jan 8, 2019).

Environment

  • Python version: 3.6
  • NetBox version: 2.5.2

Steps to Reproduce

Send an API request to /api/dcim/_choices

Expected Behavior

Expected entries for:

  • PORT_TYPE_CHOICES
  • CABLE_TERMINATION_TYPE_CHOICES
  • CABLE_TYPE_CHOICES
  • RACK_DIMENSION_UNIT_CHOICES

Observed Behavior

No entries for any choices brought in for 2.5 apart from CABLE_LENGTH_UNIT_CHOICES

Originally created by @DanSheps on GitHub (Jan 8, 2019). ### Environment * Python version: 3.6 * NetBox version: 2.5.2 ### Steps to Reproduce Send an API request to /api/dcim/_choices ### Expected Behavior Expected entries for: * PORT_TYPE_CHOICES * ~~CABLE_TERMINATION_TYPE_CHOICES~~ * CABLE_TYPE_CHOICES * ~~RACK_DIMENSION_UNIT_CHOICES~~ ### Observed Behavior No entries for any choices brought in for 2.5 apart from CABLE_LENGTH_UNIT_CHOICES
adam added the type: bugstatus: accepted labels 2025-12-29 17:24:23 +01:00
adam closed this issue 2025-12-29 17:24:23 +01:00
Author
Owner

@DanSheps commented on GitHub (Jan 8, 2019):

CABLE_TERMINATION_TYPE_CHOICES doesn't appear to be needed as it isn't on the /api/dcim/cable endpoint and is only internal.

@DanSheps commented on GitHub (Jan 8, 2019): CABLE_TERMINATION_TYPE_CHOICES doesn't appear to be needed as it isn't on the /api/dcim/cable endpoint and is only internal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2271