-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Cannot import or clone a Cable #11210
Comments
If you provide the id for a cable it is updated correctly. This error is only when trying to import new cable objects. |
Please provide all the steps required to replicate the issue, including example CSV data.
Please provide replication steps for the API error also.
This should probably be split out in a seperate bug report as they are unlikely to be related. I'm not even sure why it is possible to clone a cable as no fields are cloned and we don't provide a default "Add cable" option like most other models. |
For reference I just tried importing the following cable and it worked without issue on 3.4.0:
If I try to import the same cable again or I try to import a cable that connects to an occupied interface I get the same error as you. This would indicate that there might be some missing validation, but I'm not sure if this is new in 3.4 or not. I could not replicate it in the API. |
I'm seeing similar behavior. It feels like there are certain errors that aren't being caught. While trying to bulk create if I had a bad interface type or name it would create the same primary key error but when I had included additional data in the cable color I received a specific error saying I provided 7 characters but it was only expecting 6. |
I'm also seeing similar behavior. When creating new cables using the import feature (using a json snippet), it shows the same |
NetBox version
v3.4.0
Python version
3.9
Steps to Reproduce
Expected Behavior
A cable should be created.
Observed Behavior
A ValueError was raised.
Creating a cable through the UI is done successfully.
Using the API creates the same error as importing.
There seems to also be an issue with Cloning a Cable:
When you click Clone on a Cable you recieve this error:
The text was updated successfully, but these errors were encountered: