feat: compare client software versions with the newest version online

The client software overview looks up the newest version of every product at
endoflife.date (latest patch of supported release cycles) and Repology (newest
upstream version, preferring winget, Chocolatey and Scoop) and takes the newer
of both. The product list gets the columns "Laut Internet" and "Veraltet"
(clients on an older version), a product's page shows the online version and
marks each installed version as current or outdated. Only the precision of the
online version counts, so 128.0.3.8945 is current against 128.0.3.

Lookups run in the background via a JSON endpoint per product, are cached
(software_latest_cache_hours, failures for one hour), respect NetBox's
HTTP_PROXIES and query Repology at most once per second. Product names are
guessed from the installed name; software_latest_mapping sets project names
by hand or skips a product. "Online neu prüfen" bypasses the cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-27 11:00:18 +01:00
1 parent 1d6b16c0e4
commit 2c35147dca
10 files changed
+552 -5

No files matched your search

+5 -1
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig, get_plugin_config
__version__ = "0.31.0"
__version__ = "0.32.0"
class NetBoxUtilitiesConfig(PluginConfig):
@@ -34,6 +34,10 @@ class NetBoxUtilitiesConfig(PluginConfig):
"wireless_trace_enabled": True,
"software_enabled": True,
"software_device_roles": ["Client", "Windows Client"],
"software_latest_enabled": True,
"software_latest_sources": ["endoflife", "repology"],
"software_latest_mapping": {},
"software_latest_cache_hours": 24,
}
middleware = [
"netbox_utilities.middleware.GlobalTenantFilterMiddleware",