Custom scripts are gone #17557
-
After I upgraded from 3.6.9 to 4.0.11 I noticed that a few of the Reports were failing, so I set about fixing them, but no matter what I did, the changes were not being read in Netbox for GUI execution. How do I get Netbox GUI to show the scripts that are on the disc? A little about the setup: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
For standalone scripts in SCRIPTS_ROOT, you have to import them through the GUI. Dropping them into the filesystem by itself is no longer sufficient. Remove the file from the filesystem, then use Scripts > Add, Upload file. However if you want to keep your scripts in a git repository then I believe the official way now is to add a "Data source" to Netbox for the git repo, and then you can create scripts in the GUI which reference a file in that data source. I've never tried this myself though. |
Beta Was this translation helpful? Give feedback.
For standalone scripts in SCRIPTS_ROOT, you have to import them through the GUI. Dropping them into the filesystem by itself is no longer sufficient. Remove the file from the filesystem, then use Scripts > Add, Upload file.
However if you want to keep your scripts in a git repository then I believe the official way now is to add a "Data source" to Netbox for the git repo, and then you can create scripts in the GUI which reference a file in that data source. I've never tried this myself though.