-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v4.2.2
Feature type
Data model extension
Proposed functionality
Currently we raise an ImproperlyConfigured exception and refuse to start NetBox at all if any plugin has min_version or max_version specified such that the installed version of NetBox is outside the compatible range.
Proposal is to allow NetBox to recognize incompatible plugins at startup and skip loading them (while emitting an appropriate warning), rather than raising an exception.
This should probably be done with a custom exception type that inherits from ImproperlyConfigured so that these exceptions can be caught separately.
Use case
It is not always easy to upgrade plugins at the same time as a NetBox installation, or a plugin might not yet be updated to the current NetBox version; this often leads to support issues where plugins must be painstakingly removed from the local configuration during an upgrade. This change would make it possible for plugins' published compatibility ranges to be enforced through the invalid plugins simply being disabled rather than interfering with the overall application's startup.
Note that plugins will need to be more diligent about defining max_version and pinning it to the most recent NetBox release against which it has been tested.
Database changes
N/A
External dependencies
N/A