netbox-community / Device-Type-Library-Import

This library is intended to assist with importing device and module types into NetBox from the NetBox Community DeviceType-Library
https://github.com/netbox-community/devicetype-library
MIT License
247 stars 74 forks source link

importing arista vendor failes #133

Open zombiehoffa opened 2 months ago

zombiehoffa commented 2 months ago

using -e "VENDORS=arista" with the suggested docker command I get : netbox-device-type-library-import Package Installed https://github.com/netbox-community/devicetype-library.git Vendor Specified, Gathering All Matching Device-Types 1 Vendors Found 200 Device-Types Found Manufacturer Exists: Arista - 1 {"front_image":["The submitted data was not a file. Check the encoding type on the form."],"rear_image":["The submitted data was not a file. Check the encoding type on the form."]} Traceback (most recent call last): File "/app/nb-dt-import.py", line 853, in <module> main() File "/app/nb-dt-import.py", line 826, in main createDeviceTypes(deviceTypes, nb) File "/app/nb-dt-import.py", line 680, in createDeviceTypes dt.id, nb) UnboundLocalError: local variable 'dt' referenced before assignment

it works for mikrotik so I'm at ab it of a loss how to get it to work for Arista.