Two devices devices connected to the same port #1996

Closed
opened 2025-12-29 17:21:18 +01:00 by adam · 3 comments
Owner

Originally created by @NetTinkerer on GitHub (Sep 11, 2018).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.3.3

It is the same as https://github.com/digitalocean/netbox/issues/1313 which should have been resolved already.
``

Steps to Reproduce

create two interface connections one with the port a interface_a and one with the port as interface_b

curl -s -k "https://netbox/api/dcim/interface-connections/?device=nw-rc-tor01&limit=1000" | jq -r ' .results | .[] |  [ .interface_a.name, .interface_a.device.name, .interface_b.name, .interface_b.device.name ] | @csv' | grep swp1\" | grep tor | grep -v spine
"eno1","in-rc-st3fxlsm2","swp1","nw-rc-tor01"
"swp1","nw-rc-tor01","eno1","testbak01"

swp1 on nw-rc-tor01 is being used twice

Expected Behavior

API should prevent these connectios

Observed Behavior

Port connected twice

Originally created by @NetTinkerer on GitHub (Sep 11, 2018). ### Environment * Python version: 3.5.2 * NetBox version: 2.3.3 It is the same as https://github.com/digitalocean/netbox/issues/1313 which should have been resolved already. `` ### Steps to Reproduce create two interface connections one with the port a interface_a and one with the port as interface_b ``` curl -s -k "https://netbox/api/dcim/interface-connections/?device=nw-rc-tor01&limit=1000" | jq -r ' .results | .[] | [ .interface_a.name, .interface_a.device.name, .interface_b.name, .interface_b.device.name ] | @csv' | grep swp1\" | grep tor | grep -v spine "eno1","in-rc-st3fxlsm2","swp1","nw-rc-tor01" "swp1","nw-rc-tor01","eno1","testbak01" ``` swp1 on nw-rc-tor01 is being used twice ### Expected Behavior API should prevent these connectios ### Observed Behavior Port connected twice
adam closed this issue 2025-12-29 17:21:18 +01:00
Author
Owner

@viandham commented on GitHub (Sep 13, 2018):

I'd love to think that the title of this issue is deliberate. 😄

@viandham commented on GitHub (Sep 13, 2018): I'd love to think that the title of this issue is deliberate. 😄
Author
Owner

@jeremystretch commented on GitHub (Sep 13, 2018):

Please list the exact steps needed to reproduce the bug, beginning with the creation of devices and interfaces, and including the exact API requests made.

@jeremystretch commented on GitHub (Sep 13, 2018): Please list the **exact** steps needed to reproduce the bug, beginning with the creation of devices and interfaces, and including the exact API requests made.
Author
Owner

@jeremystretch commented on GitHub (Sep 27, 2018):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Sep 27, 2018): Closing due to lack of activity.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1996