Commit Graph
61 Commits
Author SHA1 Message Date
MrBlakeandClaude Sonnet 5 f08df4fd52 fix: detect power cables by termination type and move toggle into topology card
Power-cable detection previously relied on cable.type, which is usually
unset for power patch cables (e.g. PDU-to-PDU), so they never got the
distinct color. Power cables are now also detected by termination
component type (PowerPort/PowerOutlet/PowerFeed).

Wireless/power display is now toggled client-side via checkboxes in the
Kabeltopologie card header (before the SVG/PNG/draw.io export buttons)
instead of a server round-trip through the top filter form, so toggling
is instant and affects exports too.

Bump plugin version to 4.5.2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 10:45:27 +02:00
MrBlakeandClaude Sonnet 5 2e43166949 feat: declare NetBox 4.7.x support and add wireless/power toggle to Kabeltopologie
Adds min_version/max_version to the plugin config for NetBox 4.7.x and
extends the rack view's cable topology with optional wireless and power
cable display, rendered with distinct colors and dash patterns from
regular network cables.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 10:36:47 +02:00
MrBlake 86a8daf45e Merge branch 'develop' of https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views into develop 2026-08-06 14:38:20 +02:00
MrBlake f706db754c fix: respect rack unit numbering direction and starting unit 2026-08-06 14:38:16 +02:00
MrBlake c49270fab0 x 2026-07-28 15:06:14 +02:00
MrBlake 6ff2b60bb4 fix: enforce flex layout for topology device spacing 2026-07-28 15:00:32 +02:00
MrBlake ef1ad4d607 fix: enforce topology spacing and light-mode cable highlights 2026-07-28 14:58:13 +02:00
MrBlake a1d28e922d fix: improve cable count badge contrast 2026-07-28 14:48:33 +02:00
MrBlake d9d2e4dd59 fix: detect NetBox theme for topology cable highlights 2026-07-28 14:47:39 +02:00
MrBlake 1f80ae5099 fix: improve topology spacing zoom scrolling and wireless support 2026-07-28 14:42:41 +02:00
MrBlake 4680209d83 feat: add fullscreen topology and wireless links 2026-07-28 14:36:08 +02:00
MrBlake bb0693bef7 fix: sort topology devices without rendering rack elevations 2026-07-28 14:32:34 +02:00
MrBlake 1de5ed0565 feat: align topology nodes with racks and add theme-aware exports 2026-07-28 14:26:28 +02:00
MrBlake 1ff68d7026 fix: export all rendered devices from rack elevations 2026-07-22 13:33:49 +02:00
MrBlake 944652f66c feat: export editable draw.io rack and topology elements 2026-07-22 13:31:05 +02:00
MrBlake 36343c9e23 feat: add transparent rack and topology exports 2026-07-22 13:24:45 +02:00
MrBlake cbdf217f18 feat: add draggable topology with interactive cable tracing 2026-07-22 09:45:56 +02:00
MrBlake d8069edd73 feat: improve rack readability and add cable topology 2026-07-22 09:41:03 +02:00
MrBlake a967f88401 fix: avoid collision with NetBox Rack.units property 2026-07-22 09:35:55 +02:00
MrBlake fccc54e75e feat: add multi-rack elevation view and switch icons
- add rack elevation view for one or multiple racks
- render front and rear device positions by rack unit
- show physical cabling below selected racks
- add site, location, rack, and empty-rack filters
- add network, leaf, spine, and aggregation switch icons
- add “Weitere Ansichten” navigation category
2026-07-22 09:26:36 +02:00
Mario 8100b8146f Remove modal window (#680) 2025-10-09 14:59:35 +02:00
Mario b85e548049 added empty result warning (#658) 2025-07-18 23:09:26 +02:00
Mario 02a7118a33 Fixes #547: XML Export does not work in modal window (#572)
* Fix XML export in modal windows

* Removed useless concatenation

* Revert removed basePath in JS and added basePath to HTMX template
2024-09-27 21:44:06 +02:00
2895294903 477 prepare for netbox 4.0 (#495)
* Change extras.plugins to netbox.plugins (#487)

* Remove ButtonColorChoices (#491)

* remove is_htmx

* fieldset update

* Additions to 477 prepare for netbox 4.0 (#504)

* Re-add overriding of default_renderer

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Restore i18n of field names

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Remove unnecessary FieldSets

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Remove trailing whitespaces in forms.py

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Fix error in resizeCanvas

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Remove btn-sm class from buttons

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* Use htmx_partial instead of request.htmx

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

---------

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>

* fix choises

* fix color switcher (use new attribute)

* fix htmx filter

* 4.0.0-beta.1 release

---------

Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>
Co-authored-by: Mario <github@franzbonenkamp.de>
Co-authored-by: Iain Buclaw <ibuclaw@gdcproject.org>
2024-06-05 13:23:34 +02:00
Mario a543f5cb0c fix pixel waste (#440) 2024-01-04 21:42:19 +01:00
mattieserver 50c90a4328 438 beta release for netbox v370 (#439)
* 3.9.0

* 3.9-beta1
2024-01-02 12:22:46 +01:00
Mario b3397f4f4a Fixes #417: README is missing some permissions (#419)
* Add resize listener and height calculation

* Fixed typos

* add permissions for new views
2023-10-29 14:56:42 +01:00
Mario 987c7ef34c Fixes #377: Non-devices do not save coordinates (#387)
* corrected nodeId handling

* add models

* import models, migrate db

* correct migration deps

* load coordinates from db

* add serializers, correct imports

* add views and templates

* fix X-Y swap in help text

* add non-devices to coordinate group view
2023-09-27 09:13:17 +02:00
dreng 69cd2c431c add newline to end of images.html 2023-06-04 12:06:26 +02:00
dreng 8f520f9a6a fixed image path construction 2023-06-03 23:04:47 +02:00
mattieserver 6ee787bfb7 fixed xml export for site + location (#317) 2023-05-30 15:05:33 +02:00
Mario 252ddd4c50 Merge pull request #302 from dreng/293_location_topology_views
Closes #293: Add location topology button
2023-05-23 18:21:07 +02:00
dreng 3b1e69f2a5 Add missing newlines 2023-05-14 22:30:31 +02:00
dreng f23f127d3b Add location topology button 2023-05-14 22:25:42 +02:00
dreng a0698ed888 improved views and templates 2023-05-09 19:32:50 +02:00
dreng d478c92fc8 Housekeeping 2023-05-07 09:01:14 +02:00
dreng 7e2ffc575f plural to singular 2023-05-06 22:57:12 +02:00
dreng 60c272acb7 Add Coordinate models, forms, views, templates,... 2023-05-06 22:57:12 +02:00
Marioandmattieserver 5e9aaecf9c Closes #189, Closes #158: Add draw.io XML export (#277)
* Added export to draw.io XML

* Corrected missing newline at end of file

* init

* moved to api call

---------

Co-authored-by: mattieserver <3049868+mattieserver@users.noreply.github.com>
2023-04-30 15:22:38 +02:00
MarioandMattijs Vanhaverbeke 5d20a7ad15 Closes #252,#78,#177,#265: Move options from config file to GUI (#262)
* Added some individual options

* Added general options

* Added show_single_cable_logical_conns and draw_default_layout

* Added ignore_cable_type to IndividualOptions

* Corrected permission, tiny improvements

* Add preselected_device_roles to IndividualOptions

* Add preselected_tags

* Updated documentation

* Update README.md

* Corrected queryset for preselected_tags

* Update README.md

* move supported_termination_types to inside the function to prevent migration issues

* removed general options

* added new migration script

---------

Co-authored-by: Mattijs Vanhaverbeke <mattijs.vanhaverbeke@ebo-enterprises.com>
2023-03-23 09:57:51 +01:00
Mario 6f2ac1684a Added show_cables=on to HTMX-GET parameters (#242) 2023-01-08 22:08:04 +01:00
dreng 47079cf27f Raised max-width 2023-01-06 23:47:24 +01:00
mattieserver e0bd1d4e86 Closes #160: feature save filters (#227)
* initial saved filter support

* add filter field

* fixed model

* changed margin
2022-12-26 12:07:01 +01:00
Renato Almeida de OliveiraandMattijs Vanhaverbeke 7173564ea9 Topology button in Site View (#220)
* Topology button in Site View

* Add mdi icons to Topology and Close Buttons

* Fix buttons tag and class

* fixed drag & site filter

Co-authored-by: Mattijs Vanhaverbeke <mattijs.vanhaverbeke@ebo-enterprises.com>
2022-12-18 18:15:48 +01:00
Victor Gorchilov 52c2611e9d Feature: Add customisable icons in topology (#193)
* [up] add config for custom images, better js

* [up] use bundler to bundle js

* [fix] remove domcontentloaded since defer is used

* [fix] formatting with black

* [fix] images drf api

* [up] add support for custom icons on additional roles: power panel, power feed, circuit

* [up] optimize topology generation by using `_id` when trying to access pk of related object

* [fix] kebab case instead of slugification

* [fix] use empty queryset in api views & change coord save logic
2022-12-09 13:40:39 +01:00
mattieserver af1666b3ba move to esbuild & yarn (#138)
* move to esbuild & yarn

* remove gulpfile

* cleanup unused ref

* updated gitignore
2022-08-03 17:29:15 +02:00
Alexander Ryazanov b5991a5f50 Improve visualization performance (substantially) (#109)
* fix: moved image generation to avoid severe performance issues

* fix: moved button finding code before data handling

* fix: fixed leftover invalid variable naming
2022-05-10 09:21:22 +02:00
Jeremy Stretchandmattieserver 62c0dbddb2 Initial work on NetBox v3.2 support (#88)
Co-authored-by: mattieserver <3049868+mattieserver@users.noreply.github.com>
2022-03-25 13:13:33 +01:00
mattieserver 3e5b28f208 Update to support netbox v3.1 (#82)
* init for v3.1

* added coords + bump version

* fix filter + added preselected roles

* added draw_default_layout

* upgraded packages

* fixed edge/node labels

* fixed enable_circuit_terminations

* added filter for unconnected devices

* added ignore_cable_type

* fixed old settings using a string instead of array

* removed distutils

* fixed coords check

* added coor saving

* added doc img

* updated docs

* bump version

* bump version
2022-03-08 17:03:47 +01:00
mattieserver 91a690f1c8 add filter by locations (#63)
* frontend for locations

* locations filter backend
2021-05-01 19:22:28 +02:00