-
Notifications
You must be signed in to change notification settings - Fork 68
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
Update for netbox ver 4 #387
Comments
The largest issue seems to be the change from ContentType to ObjectType. We were able to get it working by replacing all instances of content_types in the files in module/ and subdirectories with object_types, and replacing line 1192 in module/netbox/object_classes.py with: Whether or not that was all required or if it fixes all problems, I don't know yet, but that got it to run for us. |
Hey @jhammond-git, Thank you for the hint. Currently implementing the support for 4.0, hope I can finish it before I have to leave for holidays. |
Hi, I just pushed a new commit to "development" would you be able to test and see if it's working with NetBox 3.7 and NetBox 4.0? Thank you |
Thank you, I can check on Monday |
Still need to change line 1192 as noted above:
|
|
Awesome that 4.0 compatibility is already on it's way! When I saw the changelogs I was exited and anxious at the same time. (Jay new UI with working Markdown hyperlinks & inline images, but SO many breaking changes). I should be able to spin up a testing environment for this next week, and I'll keep my eyes on this issue in case further testing is required. |
Apparently I was wrong. Whatever happened the first run after pulling the new code didn't happen the second, so please ignore for now. |
I have the same error
|
For me it doesn't work with Netbox v3.7 - same error as @Sivolen. It works with Netbox v4.0.1 but before that I needed to delete the cache directory. |
Hi @bb-Ricardo, Before I ran the script, I deleted the entire cache directory in both Netbox versions (3.7.6 and 4.0.1). For version 4.0.1 the script worked fine, but for version 3.7.6 there is this error: 2024-05-13 12:16:26,721 - DEBUG: Requesting all custom fields from NetBox |
Hi, I pushed another fix to handle the renamed field correctly. Can you try it out if it works now. Also deleting cache is important. thank you |
after clearing the cache the script works correctly, |
Hi, Netbox 3.7.6 Upgrade Netbox from 3.7.6 to 4.0.1 |
Awesome, thank you for testing and confirming. |
Hi!
Tell me, will there be an update for netbox version 4?
The text was updated successfully, but these errors were encountered: