v0.2.4: verify and declare NetBox 4.7.1 compatibility

Went through NetBox 4.7's release notes for breaking/plugin-relevant
changes and checked each one that could plausibly affect this plugin
against the actual v4.7.1 source rather than assuming:

- Rack.form_factor/width/airflow/outer_* are deprecated (removal
  planned for v5.0) but still present and behave the same - the
  plugin's GEOMETRY_FIELDS copying is unaffected.
- ChoiceSet's CHOICES now accepts a new Choice object, but the
  metaclass explicitly still supports the legacy (value, label, color)
  tuple format this plugin's own choices.py uses - confirmed by
  reading utilities/choices.py's updated register() logic directly.
- register_model_view, ViewTab, get_model_urls, PluginConfig's
  relative resource-path resolution, PortTemplateMapping/
  PortMappingBase (patch panel front/rear sync),
  Cable/CableTermination/CabledObjectModel (rack-import cable copy),
  NetBoxModel/NetBoxModelForm/NetBoxModelFilterSet/NetBoxModelViewSet,
  PluginMenu*, ColorField, DynamicModelChoiceField, TagFilterField,
  CSVChoiceField/CSVModelChoiceField: all unchanged or only gained
  additive mixins.
- django-tables2 v3's removed RelatedLinkColumn and the removed
  querystring tag aren't used anywhere in this plugin. The MPTT->ltree
  migration doesn't touch any model this plugin manipulates directly.

No source changes were required. Raised max_version from 4.6.99 to
4.7.99 to reflect the verified range; left it there rather than
guessing forward to an unreleased 4.8.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 09:04:58 +02:00
co-authored by Claude Sonnet 5
parent 1793bf13e2
commit 96ce1ef713
4 changed files with 26 additions and 4 deletions
+17
View File
@@ -1,5 +1,22 @@
# Changelog # Changelog
## 0.2.4
- Verified compatibility with NetBox 4.7.1 and raised `max_version` to `4.7.99`
accordingly (was `4.6.99`). Checked every area 4.7's release notes call out as
breaking or plugin-relevant against the actual 4.7.1 source: the `Rack` model's
`form_factor`/`width`/`airflow`/`outer_*` fields (deprecated, not removed),
`ChoiceSet`'s `Choice`-object refactor (the legacy `(value, label, color)` tuple
format this plugin's own choices use is explicitly still supported),
`register_model_view`/`ViewTab`/`get_model_urls`, `PluginConfig` resource-path
resolution, `PortTemplateMapping`/`PortMappingBase` (the patch-panel front/rear
mapping this plugin's component sync reads), `Cable`/`CableTermination`/
`CabledObjectModel` (the rack-import cable copy), and the `NetBoxModel*`/
`PluginMenu*`/`ColorField`/`DynamicModelChoiceField` base classes. No code changes
were needed - django-tables2's `RelatedLinkColumn` removal and the removed
`querystring` tag don't apply (unused), and the MPTT→ltree migration doesn't touch
anything this plugin manipulates directly.
## 0.2.3 ## 0.2.3
- Fix: dragging a device from front to rear (or back) made it invisible mid-drag - it - Fix: dragging a device from front to rear (or back) made it invisible mid-drag - it
+1 -1
View File
@@ -1,6 +1,6 @@
# netbox-rack-concept # netbox-rack-concept
Rack-Blaupausen für NetBox 4.6. Ein „Rack Konzept" ist ein vollständig geplantes Rack Rack-Blaupausen für NetBox 4.6 und 4.7. Ein „Rack Konzept" ist ein vollständig geplantes Rack
samt Einbauten — aber **kein** echtes Rack und **keine** echten Geräte. Konzepte tauchen samt Einbauten — aber **kein** echtes Rack und **keine** echten Geräte. Konzepte tauchen
deshalb weder in der Rack-Liste noch in der Geräte-Liste auf, verfälschen keine deshalb weder in der Rack-Liste noch in der Geräte-Liste auf, verfälschen keine
Auslastungs-Auswertungen und belegen keine Seriennummern oder IP-Adressen. Auslastungs-Auswertungen und belegen keine Seriennummern oder IP-Adressen.
+7 -2
View File
@@ -1,6 +1,6 @@
from netbox.plugins import PluginConfig from netbox.plugins import PluginConfig
__version__ = '0.2.3' __version__ = '0.2.4'
class RackConceptConfig(PluginConfig): class RackConceptConfig(PluginConfig):
@@ -11,7 +11,12 @@ class RackConceptConfig(PluginConfig):
author = 'Claude' author = 'Claude'
base_url = 'rack-concepts' base_url = 'rack-concepts'
min_version = '4.6.0' min_version = '4.6.0'
max_version = '4.6.99' # Verified against the real 4.7.1 source: RackBase/Rack fields, PortTemplateMapping,
# Cable/CableTermination, register_model_view/ViewTab, NetBoxModel*, ChoiceSet
# (its CHOICES refactor explicitly keeps supporting the legacy (value, label, color)
# tuple format this plugin uses) are all unchanged or additive. No 4.8 exists yet to
# verify against, so the ceiling stops at the 4.7 line rather than guessing further.
max_version = '4.7.99'
# These paths are relative to this module (NetBox prepends self.__module__), # These paths are relative to this module (NetBox prepends self.__module__),
# so they must NOT be prefixed with 'netbox_rack_concept.' again. # so they must NOT be prefixed with 'netbox_rack_concept.' again.
menu = 'navigation.menu' menu = 'navigation.menu'
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "netbox-rack-concept" name = "netbox-rack-concept"
version = "0.2.3" version = "0.2.4"
description = "Rack blueprints for NetBox: plan racks and their equipment without creating real racks or devices" description = "Rack blueprints for NetBox: plan racks and their equipment without creating real racks or devices"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"