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:
1 parent
1d6b16c0e4
commit
2c35147dca
10 files changed
+552
-5
No files matched your search
@@ -229,6 +229,10 @@ sudo systemctl restart netbox netbox-rq
|
||||
| `switch_device_roles` | `["Switch"]` | Device roles (case-insensitive) that get the front panel and export button |
|
||||
| `software_enabled` | `True` | Client software overview and **Software** device tab (requires netbox-slm) |
|
||||
| `software_device_roles` | `["Client", "Windows Client"]` | Device roles (name or slug, case-insensitive) shown in the client software overview and given the **Software** tab |
|
||||
| `software_latest_enabled` | `True` | Look up the newest version of each product online (endoflife.date, Repology) |
|
||||
| `software_latest_sources` | `["endoflife", "repology"]` | Online sources to ask |
|
||||
| `software_latest_mapping` | `{}` | Project names per product name, e.g. `{"Google Chrome": {"endoflife": "chrome", "repology": "chromium"}}`; `False` skips a product |
|
||||
| `software_latest_cache_hours` | `24` | How long online results are cached |
|
||||
| `wireless_trace_enabled` | `True` | Cable trace continues across wireless links (radio bridges) to the cabled port of the peer radio |
|
||||
|
||||
## Usage
|
||||
@@ -544,6 +548,20 @@ recognisable version (at least one dot) get the version `unbekannt`. Deleting a
|
||||
device removes its automatic installations first, so netbox-slm does not block
|
||||
the deletion.
|
||||
|
||||
**Newest version according to the internet.** The product list gets the columns
|
||||
*Laut Internet* and *Veraltet*, and a product's page shows the newest version
|
||||
next to its own versions, each marked *aktuell* or *veraltet*. The versions come
|
||||
from [endoflife.date](https://endoflife.date) (latest patch of the supported
|
||||
release cycles) and [Repology](https://repology.org) (newest upstream version,
|
||||
preferring winget, Chocolatey and Scoop); the newer of both wins. Product names
|
||||
are guessed (`Mozilla Firefox (x64 de)` → `firefox`, then `mozilla-firefox`);
|
||||
where the guess fails, set `software_latest_mapping`. Only the precision of the
|
||||
online version counts: `128.0.3.8945` is current against `128.0.3`. Results are
|
||||
loaded in the background after the page and cached (`software_latest_cache_hours`,
|
||||
failed lookups one hour); *Online neu prüfen* asks again. NetBox needs outbound
|
||||
HTTPS to `endoflife.date` and `repology.org`; `HTTP_PROXIES` from the NetBox
|
||||
configuration is used. Repology is queried at most once per second.
|
||||
|
||||
Devices that already have a report are transferred once with:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user