Netbox 3.5 script load changes cause script module load errors #12610
-
NetBox versionv3.5.1 Python version3.10 Steps to Reproduce
Expected BehaviorWe should be able to make an API call to start a custom script execution when deployed as a module. Observed BehaviorA ScriptModule matching query does not exist exception raised. Traceback:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Note that this functionality worked until version 3.4, been working since 2.11 |
Beta Was this translation helpful? Give feedback.
-
I don't see any hints regarding the custom scripts changes in the release notes of v3.5.0 and v3.5.1 -- is there documentation describing what has changed and how to adjust custom scripts to the new script system? |
Beta Was this translation helpful? Give feedback.
Sadly the new script system is substantially different than the old system, and a lot of functionality that allows code reuse and better organization simply does not work anymore.
See:
#12432
#12431
It is still unclear if the new system will reach parity with pre-3.5 in these regards.