REST API: GET /api/dcim/interface-connections/ doesn't show connections (p.2) #4778

Closed
opened 2025-12-29 19:20:22 +01:00 by adam · 3 comments
Owner

Originally created by @proudbro on GitHub (Apr 16, 2021).

NetBox version

v.2.10.10

Python version

3.6

Steps to Reproduce

This issue based on https://github.com/netbox-community/netbox/issues/6081

  1. Create test device "TEST" with interfaces components
  2. Create cable connections for interfaces of test device with any other devices
  3. Try to GET <your.netbox.url>/api/dcim/interface-connections/?device=TEST OR GET <your.netbox.url>/api/dcim/interface-connections/?device_id=

Expected Behavior

The list of connections of our TEST device with connected devices

Observed Behavior

Empty list of connections

HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 0,
    "next": null,
    "previous": null,
    "results": []
}

This worked for sure in Netbox v2.6.6

Originally created by @proudbro on GitHub (Apr 16, 2021). ### NetBox version v.2.10.10 ### Python version 3.6 ### Steps to Reproduce This issue based on https://github.com/netbox-community/netbox/issues/6081 1. Create test device "TEST" with interfaces components 2. Create cable connections for interfaces of test device with any other devices 3. Try to GET <your.netbox.url>/api/dcim/interface-connections/?device=TEST OR GET <your.netbox.url>/api/dcim/interface-connections/?device_id=<id> ### Expected Behavior The list of connections of our TEST device with connected devices ### Observed Behavior Empty list of connections ``` HTTP 200 OK Allow: GET, HEAD, OPTIONS Content-Type: application/json Vary: Accept { "count": 0, "next": null, "previous": null, "results": [] } ``` This worked for sure in Netbox v2.6.6
adam added the type: bugstatus: duplicate labels 2025-12-29 19:20:22 +01:00
adam closed this issue 2025-12-29 19:20:22 +01:00
Author
Owner

@mshems commented on GitHub (Apr 19, 2021):

Likely related to: #5627?

@mshems commented on GitHub (Apr 19, 2021): Likely related to: [#5627](https://github.com/netbox-community/netbox/issues/5627)?
Author
Owner

@proudbro commented on GitHub (Apr 20, 2021):

Likely related to: #5627?

It looks like

@proudbro commented on GitHub (Apr 20, 2021): > Likely related to: [#5627](https://github.com/netbox-community/netbox/issues/5627)? It looks like
Author
Owner

@jeremystretch commented on GitHub (Apr 20, 2021):

Okay, marking this as a duplicate then.

@jeremystretch commented on GitHub (Apr 20, 2021): Okay, marking this as a duplicate then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4778