Duplicate Cable ID via API Call #3020

Closed
opened 2025-12-29 18:24:48 +01:00 by adam · 2 comments
Owner

Originally created by @AstritCepele on GitHub (Nov 19, 2019).

Netbox: v2.5.10
Python: 3.6.3

Steps to Reproduce

I am using library Pynetbox but i assume that it will create the same result via Postman/any app

  1. PUT request to : /dcim​/cables​/{id}​/
  2. Body : {termination_a_id* , termination_a*} -> insert the details for a different port on the same device.

The Cable ID will be unique and it will change its Termination A id and port

2 The cable ID was duplicated on both connections.
Image it is providen:
Capture
https://16057066842229083094.googlegroups.com/attach/63ea6f6505d06/Capture.PNG?part=0.1&view=1&vt=ANaJVrGNhtZU9d_elPFoyBhbhW3fa9eYTh4fPi9WVNZhhl7YUhwiUUwP7V1v4JeEFxDF8V3o-FwMYCbsyo6tloaHKx7oKSVvm4_0Jcwd1Eo2PhnaDrHwkCE

Originally created by @AstritCepele on GitHub (Nov 19, 2019). Netbox: v2.5.10 Python: 3.6.3 ### Steps to Reproduce ### I am using library Pynetbox but i assume that it will create the same result via Postman/any app 1. PUT request to : /dcim​/cables​/{id}​/ 2. Body : {termination_a_id* , termination_a*} -> insert the details for a different port on the same device. <!-- What did you expect to happen? --> The Cable ID will be unique and it will change its Termination A id and port <!-- What happened instead? --> 2 The cable ID was duplicated on both connections. Image it is providen: ![Capture](https://user-images.githubusercontent.com/22580457/69128305-449cc980-0aac-11ea-9703-f3d0fd93a588.PNG) https://16057066842229083094.googlegroups.com/attach/63ea6f6505d06/Capture.PNG?part=0.1&view=1&vt=ANaJVrGNhtZU9d_elPFoyBhbhW3fa9eYTh4fPi9WVNZhhl7YUhwiUUwP7V1v4JeEFxDF8V3o-FwMYCbsyo6tloaHKx7oKSVvm4_0Jcwd1Eo2PhnaDrHwkCE
adam closed this issue 2025-12-29 18:24:48 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 19, 2019):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

Please also note that the provided steps to reproduce need much more detail to be actionable.

@jeremystretch commented on GitHub (Nov 19, 2019): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/digitalocean/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/digitalocean/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely). Please also note that the provided steps to reproduce need much more detail to be actionable.
Author
Owner

@AstritCepele commented on GitHub (Nov 19, 2019):

Netbox: v2.5.10
Python: 3.6.3

Steps to Reproduce

I am using library Pynetbox but i assume that it will create the same result via Postman/any app

  1. PUT request to : /dcim​/cables​/{id}​/
  2. Body : {termination_a_id* , termination_a*} -> insert the details for a different port on the same device.

The Cable ID will be unique and it will change its Termination A id and port

2 The cable ID was duplicated on both connections.
Image it is providen:
Capture
https://16057066842229083094.googlegroups.com/attach/63ea6f6505d06/Capture.PNG?part=0.1&view=1&vt=ANaJVrGNhtZU9d_elPFoyBhbhW3fa9eYTh4fPi9WVNZhhl7YUhwiUUwP7V1v4JeEFxDF8V3o-FwMYCbsyo6tloaHKx7oKSVvm4_0Jcwd1Eo2PhnaDrHwkCE

Content Changed

@AstritCepele commented on GitHub (Nov 19, 2019): > Netbox: v2.5.10 > Python: 3.6.3 > > ### Steps to Reproduce > ### I am using library Pynetbox but i assume that it will create the same result via Postman/any app > 1. PUT request to : /dcim​/cables​/{id}​/ > 2. Body : {termination_a_id* , termination_a*} -> insert the details for a different port on the same device. > > The Cable ID will be unique and it will change its Termination A id and port > > 2 The cable ID was duplicated on both connections. > Image it is providen: > ![Capture](https://user-images.githubusercontent.com/22580457/69128305-449cc980-0aac-11ea-9703-f3d0fd93a588.PNG) > https://16057066842229083094.googlegroups.com/attach/63ea6f6505d06/Capture.PNG?part=0.1&view=1&vt=ANaJVrGNhtZU9d_elPFoyBhbhW3fa9eYTh4fPi9WVNZhhl7YUhwiUUwP7V1v4JeEFxDF8V3o-FwMYCbsyo6tloaHKx7oKSVvm4_0Jcwd1Eo2PhnaDrHwkCE Content Changed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3020