-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
I've used the indicated https://github.com/netbox-community/Device-Type-Library-Import to import the data and was presented with several integrity errors culminating in an unhandled exception. Reading through them it sounds as if they are problems in the data of this repository not the import script (but happy to migrate the issue if I'm incorrect).
Let me know if I'm doing something incorrectly to cause these, but 99.9% of the data up to the point of the unhandled exception imported fine.
Netbox version 4.4 found. Using new filters.
259 Vendors Found
4941 Device-Types Found
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'PULTIMO', 'slug': 'pultimo'}"]} creating device type: PULTIMO 701BA8PP
Could not find Rear Port for Front Port: IN RG45 NET SURGE PROTECTION - 8p8c - 529
Error '[{"__all__":["Rear port (COM) must belong to the same device type","Front port template with this Rear port and Rear port position already exists."]}]' creating Front Port
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'HW-GROUP', 'slug': 'hw-group'}"]} creating device type: HW-GROUP HWG-STE
Could not find Rear Port for Front Port: IN - 8p8c - 665
Error '[{"__all__":["Rear port (COM) must belong to the same device type","Front port template with this Rear port and Rear port position already exists."]}]' creating Front Port
Error {"__all__":["Must specify a unit when setting a weight"]} creating device type: Cisco Catalyst 2960-12PC-L
Error '[{},{},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]}]' creating Module Bay
Error '[{},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]},{},{}]' creating Module Bay
Error '[{},{},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]},{"description":["Ensure this field has no more than 200 characters."]},{},{}]' creating Module Bay
Error '[{},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]}]' creating Interface
Error '[{},{},{},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]}]' creating Interface
Error '[{},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]}]' creating Interface
Error '[{},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]},{},{"bridge":["Related objects must be referenced by numeric ID or by dictionary of attributes. Received an unrecognized value: backplane0"]}]' creating Interface
Error {"u_height":["Child device types must be 0U."]} creating device type: Fortinet Fortinet Interface Module
Error {"u_height":["Child device types must be 0U."]} creating device type: Fortinet FortiGate Module 7620F
Modules Enabled. Creating Modules...
83 Module Vendors Found
1611 Module-Types Found
Error creating manufacturers
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Qlogic', 'slug': 'qlogic'}"]}' creating module type: {'manufacturer': {'name': 'Qlogic', 'slug': 'qlogic'}, 'model': 'UCSC-PCIE-QD25GF', 'part_number': 'UCSC-PCIE-QD25GF', 'comments': 'Qlogic QL41212H dual-port 25G NIC', 'interfaces': [{'name': 'Ethernet{module}/1', 'type': '25gbase-x-sfp28'}, {'name': 'Ethernet{module}/2', 'type': '25gbase-x-sfp28'}], 'src': '/root/device-type-library/repo/module-types/Qlogic/UCSC-PCIE-QD25GF.yml'}
Traceback (most recent call last):
File "/root/device-type-library/./nb-dt-import.py", line 54, in <module>
main()
~~~~^^
File "/root/device-type-library/./nb-dt-import.py", line 35, in main
netbox.create_module_types(module_types)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/root/device-type-library/netbox_api.py", line 174, in create_module_types
self.device_types.create_module_interfaces(curr_mt["interfaces"], module_type_res.id)
^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'module_type_res' where it is not associated with a value
Metadata
Metadata
Assignees
Labels
No labels