You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just intalled a new netbox server for the company I work for. I started to the import and I get the following error message.
Error creating manufacturers
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'JNP7100-FAN1RU-AO', 'part_number': 'JNP7100-FAN1RU-AO', 'comments': 'AFO Fan module for ACX7100 routers', 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/JNP7100-FAN1RU-AO.yaml'}
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'SRX600-PWR-645AC-POE', 'part_number': '740-024283', 'comments': 'Juniper SRX550 Data Sheet\n', 'power-ports': [{'name': 'PSU {module}', 'type': 'iec-60320-c14', 'maximum_draw': 645}], 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/SRX600-PWR-645AC-POE.yaml'}
Traceback (most recent call last):
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 54, in
main()
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 35, in main
netbox.create_module_types(module_types)
File "/opt/Device-Type-Library-Import/netbox_api.py", line 176, in create_module_types
self.device_types.create_module_power_ports(curr_mt["power-ports"], module_type_res.id)
^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'module_type_res' where it is not associated with a value
The text was updated successfully, but these errors were encountered:
Netbox version 4.2 found. Using new filters.
192 Vendors Found
4304 Device-Types Found
Error creating manufacturers
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'LiteOn', 'slug': 'liteon'}"]} creating device type: LiteOn PF-2273-2L1M-LF
Error {"manufacturer":["Related object not found using the provided attributes: {'name': 'Datto', 'slug': 'datto'}"]} creating device type: Datto AP840
LHBL2003
added a commit
to LHBL2003/Device-Type-Library-Import
that referenced
this issue
May 8, 2025
I just intalled a new netbox server for the company I work for. I started to the import and I get the following error message.
Error creating manufacturers
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'JNP7100-FAN1RU-AO', 'part_number': 'JNP7100-FAN1RU-AO', 'comments': 'AFO Fan module for ACX7100 routers', 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/JNP7100-FAN1RU-AO.yaml'}
Error '{"manufacturer":["Related object not found using the provided attributes: {'name': 'Juniper', 'slug': 'juniper'}"]}' creating module type: {'manufacturer': {'name': 'Juniper', 'slug': 'juniper'}, 'model': 'SRX600-PWR-645AC-POE', 'part_number': '740-024283', 'comments': 'Juniper SRX550 Data Sheet\n', 'power-ports': [{'name': 'PSU {module}', 'type': 'iec-60320-c14', 'maximum_draw': 645}], 'src': '/opt/Device-Type-Library-Import/repo/module-types/Juniper/SRX600-PWR-645AC-POE.yaml'}
Traceback (most recent call last):
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 54, in
main()
File "/opt/Device-Type-Library-Import/./nb-dt-import.py", line 35, in main
netbox.create_module_types(module_types)
File "/opt/Device-Type-Library-Import/netbox_api.py", line 176, in create_module_types
self.device_types.create_module_power_ports(curr_mt["power-ports"], module_type_res.id)
^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'module_type_res' where it is not associated with a value
The text was updated successfully, but these errors were encountered: