Termination Type is not parsed #7677

Closed
opened 2025-12-29 20:26:48 +01:00 by adam · 4 comments
Owner

Originally created by @miyuk on GitHub (Feb 24, 2023).

Originally assigned to: @abhi1693 on GitHub.

NetBox version

v3.4.5

Python version

3.8

Steps to Reproduce

  1. create device interfaces and connect by cable interface (ex. https://demo.netbox.dev/api/dcim/cable-terminations/)
  2. seach cable terminations of filterd by termination type dcim.interface (ex. https://demo.netbox.dev/api/dcim/cable-terminations/?termination_type=dcim.interface)

Expected Behavior

return cable terminatin objects filterd by termination_type

Observed Behavior

return error message with below

{
    "termination_type": [
        "Select a valid choice. That choice is not one of the available choices."
    ]
}
Originally created by @miyuk on GitHub (Feb 24, 2023). Originally assigned to: @abhi1693 on GitHub. ### NetBox version v3.4.5 ### Python version 3.8 ### Steps to Reproduce 1. create device interfaces and connect by cable interface (ex. https://demo.netbox.dev/api/dcim/cable-terminations/) 2. seach cable terminations of filterd by termination type `dcim.interface` (ex. https://demo.netbox.dev/api/dcim/cable-terminations/?termination_type=dcim.interface) ### Expected Behavior return cable terminatin objects filterd by termination_type ### Observed Behavior return error message with below ```json { "termination_type": [ "Select a valid choice. That choice is not one of the available choices." ] } ```
adam added the type: bugstatus: accepted labels 2025-12-29 20:26:48 +01:00
adam closed this issue 2025-12-29 20:26:48 +01:00
Author
Owner

@jeremystretch commented on GitHub (Feb 24, 2023):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch commented on GitHub (Feb 24, 2023): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@miyuk commented on GitHub (Feb 28, 2023):

sorry for the late reply.
I understood.

Our main problem to resolve is that find cable object by cable-terminaion.

specific Steps to Reproduce is below

Steps to Reproduce

  1. Create two devices and each interfaces with type 1000BASE-T (1000BSE-T is type of dcim.interface).
  2. Connect cables between device interfaces from interfaces list.
  3. Find API cable termination object by termination_type and termination_id such as below data
    /api/dcim/cable-terminations/?termination_id=<interface id>&termination_type=dcim.interface
@miyuk commented on GitHub (Feb 28, 2023): sorry for the late reply. I understood. Our main problem to resolve is that find `cable` object by `cable-terminaion`. specific Steps to Reproduce is below ## Steps to Reproduce 1. Create two devices and each interfaces with type `1000BASE-T` (`1000BSE-T` is type of `dcim.interface`). 2. Connect cables between device interfaces from interfaces list. 3. Find API cable termination object by `termination_type` and `termination_id` such as below data `/api/dcim/cable-terminations/?termination_id=<interface id>&termination_type=dcim.interface`
Author
Owner

@abhi1693 commented on GitHub (Feb 28, 2023):

I think adding ContentTypeFilter field on the filterset should resolve this issue. Can I take this is this is accepted?

@abhi1693 commented on GitHub (Feb 28, 2023): I think adding `ContentTypeFilter` field on the filterset should resolve this issue. Can I take this is this is accepted?
Author
Owner

@jeremystretch commented on GitHub (Mar 1, 2023):

Thanks @abhi1693!

@jeremystretch commented on GitHub (Mar 1, 2023): Thanks @abhi1693!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7677