Create a new cable on an already used interface (API) #10929
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.3.7
Python version
3.9
Steps to Reproduce
Using api to create a cable (/api/dcim/cables/)
OK
2. Repeat with the same interface for B and another one for A
Expected Behavior
Note the fact that the interface is already in use
Observed Behavior
django.db.utils.IntegrityError: duplicate key value violates unique constraint "dcim_cable_termination_unique_termination" DETAIL: Key (termination_type_id, termination_id)=(32, 59) already exists.
The text was updated successfully, but these errors were encountered: