-
Hi all Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes. " side_a_device: "PPC-a-A01-01" is not a unique value for this field; multiple objects were found" My trouble shooting attempts: Basic questions: Is it possible to bulk import cables if you have devices with identical names? How? thx |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Try adding extra columns "side_a_device.site" and "side_b_device.site" and put the site name in there. You may need to experiment a bit, perhaps also change the existing "side_a_device" to "side_a_device.name". There is minimal exposition of this feature at #3147 (comment) and you will need at least Netbox v2.8.2. If you get it working and can provide some working examples, that would be helpful and could be submitted to enhance the documentation. Regarding what you've read in posts, can you link to those posts? |
Beta Was this translation helpful? Give feedback.
-
you may need to identify the cables not by name - but by something other unique as we just figured out: replace "side_a_device" by "side_a_device.pk" (pk = Primary Key , or id - works both the same) but since this is a lot to read you may use the RestAPI and a custom wget request or powershells invoke-webRequest then parse the $response.result through an json parser and you get good looking objects Otherwise - i have no idea if you can tell the Netbox import to select an device by multiple selections, like device={dcim.site,dcim.rack,dcim.position} |
Beta Was this translation helpful? Give feedback.
-
For reference the original data and error: side_a_device,side_a_type,side_a_name,side_b_device,side_b_type,side_b_name,type,status,label Enter the list of column headers followed by one line per record to be imported, using commas to separate values. Multi-line data and values containing commas may be wrapped in double quotes. |
Beta Was this translation helpful? Give feedback.
-
We decided to rename all our Patch Panels. |
Beta Was this translation helpful? Give feedback.
We decided to rename all our Patch Panels.
old: PPC-a-A01-01
new: PPC-CHDC1-a-A01-01
Then the name is unique and we get around the import problem.