-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"nb-dt-import.py --vendors d-link" throws "Error creating manufacturers" #1229
Comments
Hey @basictheprogram, since we released v2.0.0 of the import script, I just want to confirm which version you are on. Could you let me know if the import repo is up to date? |
Is there a --version or specific way to get the script release? The import script I use is from the master branch on github, identified as upstream but my origin is synced with upstream.
And my repo
|
A That being said, it looks like you are using a fork of the old upstream device type library import repo which was previously a personal repository. It is now managed under the NetBox community organization To get the latest release, I believe you can either:
I suggest you do option 2, because this option will allow you to acquire new releases simply by executing a |
Once you are on the new release, let me know if the issue persists. Feel free to comment back if you have any issues! |
Documentation bug at https://github.com/netbox-community/Device-Type-Library-Import? Getting Started states Confirm this is a typo. If so, I will submit a PR to fix it. |
Yup that's an obvious overlook on my part. I would appreciate the PR! https://github.com/netbox-community/Device-Type-Library-Import.git |
Same problem using all the right GitHub repos. I let
|
Thought maybe the problem was just the D-Link manufacturer. Did a full run of Problematic Manufacturers
|
Absolutely. It looks like you already have a bunch of devices in your NetBox instance. Currently the script isn't able to update existing devices, but that is coming down the line. If you try deleting one of the offending devices in NetBox and then reimporting it, it should solve the issue. Otherwise you can manually fix the difference and try again |
Netbox cannot find any of the problematic devices. I know there are several D-Link devices that are causing problems but the manufacturer report show zero devices associated with the D-Link manufacturer I know a problematic device is Tried psql (command line) and getting some really unusual results? I find the D-Link manufacturer SELECT * FROM public.dcim_manufacturer WHERE name LIKE '%D-link%';
"2022-07-12 22:31:50.799663+00" "2023-03-25 16:37:16.584804+00" "{}" 60 "D-link" "d-link" But I cannot find any of the D-Link device_types SELECT * FROM public.dcim_devicetype WHERE model LIKE '%DES%';
SELECT * FROM public.dcim_devicetype WHERE model LIKE '%DGS%'; I do not know how to delete the offending device(s) as I think the error is the script cannot insert the devices. |
Sorry about that, I wasn't clear with my last message. The D-Link devices seem problematic, I will look into that Specifically the devices like the I am on mobile right now, so I'll take a deeper look later on |
SRT3000RMXLT is found as a Device Type and Manufacturer on my Netbox The Manufacturers version shows an interesting Changelog, created 2022-07-12 but updated 5 minutes ago (which is approximately when I last ran the script) Deleted the SRT3000RMXLT "Manufacturer" and now things work for --vendors d-link!
|
Still have problems with a full run of the script. This example is EnGenius:
Searching my Netbox for nb-dt-import.py --vendors engenius
The next full run fails, but the engenius errors are gone nb-dt-import.py (full run)
Not a cure all. Missing devices for ADVA
Even --vendors adva doesn't work
Could there be a limit on the length of the slug that's being checked? slug: xg418-100g-cfp2 Or is this about your comment that the script cannot update things? |
Was able to fix the Albis-Elcon issues with
|
Fixed the Neousys issue by deleting the Manufacturer with in Netbox and running the script
|
Hey @basictheprogram the majority of the issues you are going to run into are related to pre-existing items in NetBox. As mentioned before we cannot currently update a device/model type so the only way to fix this is by deleting/readding the devices. Also as you saw, the manufacturer names need to be written correctly for it to work. Is everything working for you now? Since this also doesnt seem like an issue with the devicetype-library itself, I suggest we move this over to the (Device-Type-Library-Import)[https://github.com/netbox-community/Device-Type-Library-Import] if you need further assistance |
netbox-community 7969f4a05cf1 (v3.4.6) running in Docker
$ docker --version
Docker version 23.0.1, build a5ee5b1
I do keep pin postgres:14-apline
I run the nb-dt-import.py on macOS
(venv) $ sw_vers
ProductName: macOS
ProductVersion: 12.6.3
BuildVersion: 21G419
(venv) $ python --version
Python 3.9.16
The text was updated successfully, but these errors were encountered: