Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing duplicate cable raises error "Cable has no termination_a_type" #3709

Closed
sulisu opened this issue Nov 22, 2019 · 0 comments
Closed
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@sulisu
Copy link

sulisu commented Nov 22, 2019

Environment

  • Python version: 3.5.3
  • NetBox version: 2.6.7

Steps to Reproduce

  1. Import a cable between two interface, which already exist in netbox
    Example Data
side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name,type,status
ZBP06U0708,interface,port3,ZBP06S6520X1,interface,XGE1/0/2,Multimode Fiber (OM3),Planned

It will sucess at first time when there is no same cable definition in netbox

  1. Import the above csv data again
<class 'dcim.models.Cable.termination_a_type.RelatedObjectDoesNotExist'>

Cable has no termination_a_type.

Expected Behavior

A more clear error definition, which indicate there is a duplicate, will be very helpful.

Observed Behavior

An error message seems not relating to the real problem.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application labels Nov 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants