Commit Graph
46 Commits
Author SHA1 Message Date
MrBlakeandClaude Sonnet 5 23acebcf17 fix: handle plain HttpResponse from elevation SVG endpoint, unracked devices
- RackElevationOfflineSVGView called .render() unconditionally on the
  RackViewSet elevation action's response, but that action returns a
  plain HttpResponse (not a DRF Response) when render=svg is
  requested, causing AttributeError on every click.
- effective_width_positions() crashed with decimal.InvalidOperation
  when a device had no rack position set (e.g. surfaced via NetBox
  Topology Views, which includes unracked devices). Such devices now
  get the default full-width result instead of entering the Decimal
  conversion.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 15:16:09 +02:00
MrBlakeandClaude Sonnet 5 c722abe497 fix: move offline SVG export from buttons() to right_page()
The buttons() plugin-template-extension hook was registered for
dcim.rack and rendered without error, but the button HTML never
appeared on the rendered rack detail page in production — NetBox's
Rack detail template apparently doesn't wire the buttons() slot into
its controls row. right_page() is confirmed working for this plugin
already (the device rack-width panel uses it), so the export links
now render there as a small card instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 15:10:33 +02:00
MrBlakeandClaude Sonnet 5 3768417be6 feat: add offline SVG export for rack elevations
Adds a "SVG offline" download button on the rack detail page. It
reuses NetBox's own rack-elevation REST endpoint to render the SVG,
then strips embedded <a>/xlink:href links (which point at internal,
relative NetBox URLs and are useless once the file is saved) so the
result renders identically when opened standalone in any SVG viewer.

Gated by the new offline_svg_export_enabled plugin setting (on by
default).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 14:22:04 +02:00
MrBlakeandClaude Sonnet 5 35ca661ed0 compat: raise max_version to support NetBox 4.7
Extends the declared version range (min_version stays 4.6.5) and
updates the plugin description to reflect 4.7 support. The plugin's
internal-API monkeypatches (rack elevation SVG, DeviceEditView form)
should be regression-tested against a live NetBox 4.7.1 install, as
those are the areas most likely to break across minor releases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 09:21:42 +02:00
MrBlake ff8dacc68c fix: pair LC patchpanel ports by number 2026-08-31 11:22:53 +02:00
MrBlake f3d658b52b feat: filter connection VLANs by group 2026-08-25 12:11:18 +02:00
MrBlake d245ae0f79 ui: place connection VLANs below cable B side 2026-08-25 12:03:45 +02:00
MrBlake 4421000409 fix: ignore reverse relations during tenant autofill 2026-08-19 12:40:17 +02:00
MrBlake bd748ef985 feat: assign VLANs to network connections 2026-08-19 12:24:40 +02:00
MrBlake 1c6708216c fix: preserve shared rack units during import 2026-08-19 10:53:44 +02:00
MrBlake 7216dad2b4 fix: separate rack width import locks 2026-08-19 10:43:33 +02:00
MrBlake 639dc958a5 feat: preserve rack widths in netbox export 2026-08-19 10:33:17 +02:00
MrBlake 839b076d94 fix: preserve reorder drag width and images 2026-08-13 16:10:47 +02:00
MrBlake 79a071597c fix: restore visible rack integration widgets 2026-08-13 11:21:48 +02:00
MrBlake e42580d651 fix: bind rack integrations to rendered devices 2026-08-13 10:51:59 +02:00
MrBlake 270d821219 fix: render rack integrations server-side 2026-08-13 10:15:13 +02:00
MrBlake 33490d40c4 fix: preserve native reorder rack devices 2026-08-13 09:58:34 +02:00
MrBlake a5f8cb62c7 fix: restore populated rack and reorder views 2026-08-13 09:37:59 +02:00
MrBlake bc2024ac13 fix: render all devices sharing rack units 2026-08-13 09:09:55 +02:00
MrBlake a0358136b2 fix: restore rack and reorder width views 2026-08-13 08:35:21 +02:00
MrBlake 70825c4040 feat: integrate rack widths across plugins 2026-08-12 17:12:19 +02:00
MrBlake ec67e6b7d0 revert: defer rack images to NetBox 2026-08-12 16:02:43 +02:00
MrBlake 4ee78ae4fe fix: update rack width controls and images 2026-08-12 15:57:22 +02:00
MrBlake c663069825 fix: render partial-width devices in rack SVG 2026-08-12 15:41:40 +02:00
MrBlake 7dc9b4d91d fix: handle NetBox device form clean result 2026-08-12 15:24:01 +02:00
MrBlake c38ab30acc fix: render rack width fields in device template 2026-08-12 14:28:35 +02:00
MrBlake 008a69ed79 fix: render rack width fields in grouped device forms 2026-08-12 13:19:58 +02:00
MrBlake 37fc55449f fix: bind rack width form to device edit route 2026-08-12 12:43:54 +02:00
MrBlake 2a7459c460 fix: expose rack width fields on device edit form 2026-08-12 11:30:43 +02:00
MrBlake a504341442 feat: support partial-width rack devices 2026-08-12 10:38:54 +02:00
MrBlake 267a78d58d fix: skip patchpanel automation on edits 2026-08-06 16:07:47 +02:00
MrBlake 66d13292f2 fix: remove existing patchpanel backfill 2026-08-06 16:03:58 +02:00
MrBlake 8c6c48531e fix: retrace existing patchpanel cable paths 2026-08-06 15:38:06 +02:00
MrBlake e74d8fba31 fix: match patchpanel ports by identifier 2026-08-06 15:17:37 +02:00
MrBlake 0c4a737d41 feat: automate patchpanel mappings and cable tenancy 2026-08-06 15:09:08 +02:00
MrBlake e1153cfce4 fix: validate bulk JPEG uploads only once 2026-08-03 15:46:28 +02:00
MrBlake d54fc646ee feat: add bulk images and tenant autofill 2026-08-03 15:35:44 +02:00
MrBlake cd542f04f7 fix: keep navigation flyouts closed after reload 2026-07-31 11:27:17 +02:00
MrBlake 10e57c0514 fix: close collapsed navigation flyouts 2026-07-31 11:21:52 +02:00
MrBlake 5a2276aec9 fix: replace sidebar controls with resize handle 2026-07-31 11:11:19 +02:00
MrBlake 6b36184f9d feat: add collapsible resizable navigation 2026-07-31 10:25:47 +02:00
MrBlake 2cbce03206 feat: add atomic multi-device rack reordering 2026-07-31 10:06:14 +02:00
MrBlake 503df48ac7 feat: allow module quantity input 2026-07-30 16:10:15 +02:00
MrBlake 8a86ca28f7 feat: add bulk module installation 2026-07-30 16:00:31 +02:00
MrBlake 35e06ee004 feat: add tenant groups and required tenancy 2026-07-28 16:57:52 +02:00
MrBlake 54f6a3f6c9 feat: add personalized navigation and tenant filtering 2026-07-28 16:40:50 +02:00