Add current NetBox version in the PluginConfig.validate() error output #9653

Closed
opened 2025-12-29 21:20:24 +01:00 by adam · 1 comment
Owner

Originally created by @markkuleinio on GitHub (May 11, 2024).

Originally assigned to: @markkuleinio on GitHub.

NetBox version

v4.0.1

Feature type

New functionality

Proposed functionality

When PluginConfig.validate() determines that the current NetBox version does not meet the plugin requirements, also print out the current NetBox version in the exception message.

Use case

Currently the error message only prints the version that the plugin mandates, but due to possible installation directory confusion it would be good to also print the current NetBox version. Example case: https://github.com/netbox-community/netbox/issues/16088

Database changes

None

External dependencies

None

Originally created by @markkuleinio on GitHub (May 11, 2024). Originally assigned to: @markkuleinio on GitHub. ### NetBox version v4.0.1 ### Feature type New functionality ### Proposed functionality When [`PluginConfig.validate()`](https://github.com/netbox-community/netbox/blob/4a64a3f6e0d0edf27996422eb2dbe0e197a6bea5/netbox/netbox/plugins/__init__.py#L133) determines that the current NetBox version does not meet the plugin requirements, also print out the current NetBox version in the exception message. ### Use case Currently the error message only prints the version that the plugin mandates, but due to possible installation directory confusion it would be good to also print the current NetBox version. Example case: https://github.com/netbox-community/netbox/issues/16088 ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 21:20:24 +01:00
adam closed this issue 2025-12-29 21:20:24 +01:00
Author
Owner

@markkuleinio commented on GitHub (May 11, 2024):

If this is accepted, I can send the PR.

@markkuleinio commented on GitHub (May 11, 2024): If this is accepted, I can send the PR.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9653