netbox: Cannot import or clone a Cable
NetBox version
v3.4.0
Python version
3.9
Steps to Reproduce
- Import Cables
- Add data to import a cable
- Click Import
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.
<class 'ValueError'>
'Cable' instance needs to have a primary key value before this relationship can be used.
Python version: 3.9.2
NetBox version: 3.4.0
There seems to also be an issue with Cloning a Cable: When you click Clone on a Cable you recieve this error:
<class 'AttributeError'>
'str' object has no attribute 'label'
Python version: 3.9.2
NetBox version: 3.4.0
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (19 by maintainers)
Commits related to this issue
- Changelog for #10486, #11210, #11340, #11379 — committed to netbox-community/netbox by jeremystretch a year ago
I’m also seeing similar behavior. When creating new cables using the import feature (using a json snippet), it shows the same
'Cable' instance needs to have a primary key value before this relationship can be used.. I can also confirm that the cables I’m adding have only the required fields set.