diff --git a/MANIFEST.in b/MANIFEST.in index 8575f2d..0a14b12 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,5 @@ +include LICENSE +include NOTICE recursive-include netbox_topology_views/static * recursive-include netbox_topology_views/templates * recursive-include netbox_topology_views/api * diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..a683f91 --- /dev/null +++ b/NOTICE @@ -0,0 +1,31 @@ +MRB NetBox Topology Views +Original work: NetBox Topology Views by Mattijs Vanhaverbeke and contributors +Modifications Copyright 2026 MrBlake + +This product is a modified version of NetBox Topology Views +(https://github.com/mattieserver/netbox-topology-views), based on its release v4.5.1. + +The original work is licensed under the Apache License, Version 2.0. The +modifications are distributed under the same license; see the LICENSE file. +Files that were changed in this fork carry a notice stating that they were +modified. The complete history, including all original commits, is available at +https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views + +Device icons +------------ +The SVG icons in netbox_topology_views/static/netbox_topology_views/img/ are +licensed under the Creative Commons Attribution-ShareAlike 4.0 International +license (CC BY-SA 4.0); see the LICENSE file in that directory. They were created +by the contributors of NetBox Topology Views. The icons network-switch.svg, +leaf-switch.svg, spine-switch.svg and aggregation-switch.svg were added in this +fork and are also licensed under CC BY-SA 4.0. + +Third-party software +-------------------- +netbox_topology_views/static/netbox_topology_views/js/app.js bundles: +- vis-network 9.1.10, vis-data 7.1.9, vis-util 5.0.7 (Apache-2.0 OR MIT) +- Hammer.js (MIT) +Their copyright and license notices are retained in the bundle. + +This fork is maintained independently and is not affiliated with or endorsed +by Mattijs Vanhaverbeke, the original contributors or NetBox Labs. diff --git a/README.md b/README.md index f2a8f8d..039f663 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,12 @@ The plugin builds topologies from the devices, ports and cables maintained in NetBox. In addition to the classic topology, this fork provides a complete view of one or more racks including front, rear and cabling. +> **Fork notice:** This is a modified version of +> [NetBox Topology Views](https://github.com/mattieserver/netbox-topology-views) by +> **Mattijs Vanhaverbeke** and contributors, licensed under the [Apache License 2.0](LICENSE). +> It is maintained independently and is not affiliated with or endorsed by the original +> author. See [Origin, credits and licenses](#origin-credits-and-licenses). + | | | |---|---| | **Plugin name** | `netbox_topology_views` | @@ -222,19 +228,29 @@ Rack view: `dcim.view_rack`, `dcim.view_device`, `dcim.view_cable`. Saving classic topology coordinates additionally requires the corresponding permissions on `netbox_topology_views.coordinate`. -## Origin and credits +## Origin, credits and licenses -This project is a fork of the open-source plugin -[NetBox Topology Views](https://github.com/mattieserver/netbox-topology-views). -The original plugin was created by **Mattijs Vanhaverbeke**. Most of the classic -topology view, data models, filters and export functions are based on his work -and the contributions to the original project. +**Original project:** [NetBox Topology Views](https://github.com/mattieserver/netbox-topology-views), +created by **Mattijs Vanhaverbeke** and developed with its contributors. Most of the classic +topology view, data models, filters and export functions are based on their work. This fork +is based on release v4.5.1, and the complete original commit history is retained in this +repository. The changes are listed in [Changes compared to the original](#changes-compared-to-the-original). -This fork is developed independently and is not officially affiliated with the -original author or the NetBox project. +**This fork:** maintained by MrBlake at +[git.mrblake.cc/MrBlake/mrb-netbox-topology-views](https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views). +It is not affiliated with or endorsed by the original author, the original contributors or +NetBox Labs. Please report problems with this fork +[here](https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views/issues), not to the original project. -## License +**Licenses:** -Like the original, this project is licensed under the -[Apache License 2.0](LICENSE). Existing copyright, license and attribution -notices of the original project are retained. +| Part | License | +|---|---| +| Source code (original and modifications) | [Apache License 2.0](LICENSE) | +| Device icons in `netbox_topology_views/static/netbox_topology_views/img/` | [CC BY-SA 4.0](netbox_topology_views/static/netbox_topology_views/img/LICENSE), by the contributors of NetBox Topology Views; the icons `network-switch`, `leaf-switch`, `spine-switch` and `aggregation-switch` were added in this fork under the same license | +| vis-network, vis-data, vis-util (bundled in `js/app.js`) | Apache-2.0 OR MIT | +| Hammer.js (bundled in `js/app.js`) | MIT | + +The [NOTICE](NOTICE) file lists the copyright holders. The original copyright and license +notices are retained, and every file changed in this fork carries a notice stating that it +was modified. diff --git a/netbox_topology_views/__init__.py b/netbox_topology_views/__init__.py index b3ccdd6..8de9345 100644 --- a/netbox_topology_views/__init__.py +++ b/netbox_topology_views/__init__.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from netbox.plugins import PluginConfig @@ -6,8 +8,7 @@ class TopologyViewsConfig(PluginConfig): verbose_name = "Topology views" description = "A plugin to render topology maps" version = "4.5.2" - author = "Mattijs Vanhaverbeke, Codex & Claude" - author_email = "author@example.com" + author = "Mattijs Vanhaverbeke (original), MrBlake (fork)" base_url = "netbox_topology_views" min_version = "4.7.0" max_version = "4.7.99" diff --git a/netbox_topology_views/forms.py b/netbox_topology_views/forms.py index cca9f30..ca701df 100644 --- a/netbox_topology_views/forms.py +++ b/netbox_topology_views/forms.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from cProfile import label from django import forms from django.conf import settings diff --git a/netbox_topology_views/navigation.py b/netbox_topology_views/navigation.py index d1e2af5..e19d46f 100644 --- a/netbox_topology_views/navigation.py +++ b/netbox_topology_views/navigation.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from netbox.plugins import PluginMenu, PluginMenuItem, PluginMenuButton coordinategroup_buttons = ( diff --git a/netbox_topology_views/static/netbox_topology_views/css/app.css b/netbox_topology_views/static/netbox_topology_views/css/app.css index c2e3159..fd0b0b6 100644 --- a/netbox_topology_views/static/netbox_topology_views/css/app.css +++ b/netbox_topology_views/static/netbox_topology_views/css/app.css @@ -1 +1,3 @@ +/* Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views + Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. */ #visgraph{height:64vh;border:1px solid #ced4da}html[data-netbox-color-mode=dark] #visgraph{background-color:#212529;border:1px solid #495057}.image-dropdown img{width:64px;height:64px}.image-dropdown-content{display:flex;flex-wrap:wrap;gap:.5rem;padding-inline:.5rem;width:50vw;max-width:32rem}.image-dropdown-content>img{cursor:pointer}.rack-elevation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(34rem,1fr));gap:1rem}.rack-card{border:1px solid var(--tblr-border-color,#ced4da);border-radius:.4rem;background:var(--tblr-bg-surface,#fff);padding:1rem}.rack-card>header{display:flex;justify-content:space-between;margin-bottom:.75rem}.rack-faces{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.rack-face-title{text-align:center;font-size:.75rem;text-transform:uppercase;margin-bottom:.25rem}.rack-frame{display:flex;height:calc(var(--rack-units)*14px);min-height:280px;max-height:70vh;border:4px solid #3b4654;background:repeating-linear-gradient(to top,rgba(127,127,127,.14) 0,rgba(127,127,127,.14) 1px,transparent 1px,transparent calc(100%/var(--rack-units)))}.rack-unit-labels{width:2rem;display:flex;flex-direction:column;justify-content:space-around;font-size:.55rem;text-align:center;color:var(--tblr-secondary,#667382)}.rack-device-area{position:relative;flex:1;border-left:1px solid #3b4654}.rack-device{position:absolute;left:3px;right:3px;min-height:2px;overflow:hidden;padding:1px 5px;border:2px solid #1685fc;border-radius:3px;background:#162e45;color:#fff;line-height:1.1;text-decoration:none}.rack-device:hover{filter:brightness(1.25);color:#fff;z-index:2}.rack-device span,.rack-device small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rack-device small{font-size:.6rem;opacity:.8}@media(max-width:700px){.rack-elevation-grid{grid-template-columns:1fr}.rack-faces{grid-template-columns:1fr}} diff --git a/netbox_topology_views/static_dev/css/app.scss b/netbox_topology_views/static_dev/css/app.scss index cf1925a..90075bc 100644 --- a/netbox_topology_views/static_dev/css/app.scss +++ b/netbox_topology_views/static_dev/css/app.scss @@ -1,3 +1,5 @@ +/* Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views + Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. */ #visgraph { height: 64vh; border: 1px solid #ced4da diff --git a/netbox_topology_views/urls.py b/netbox_topology_views/urls.py index 12bc298..f88e2ea 100644 --- a/netbox_topology_views/urls.py +++ b/netbox_topology_views/urls.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from django.urls import path from django.views.generic.base import RedirectView from netbox.views.generic import ObjectChangeLogView diff --git a/netbox_topology_views/utils.py b/netbox_topology_views/utils.py index c288880..66a9294 100644 --- a/netbox_topology_views/utils.py +++ b/netbox_topology_views/utils.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from dataclasses import dataclass from functools import lru_cache from pathlib import Path diff --git a/netbox_topology_views/views.py b/netbox_topology_views/views.py index e0de033..e983588 100644 --- a/netbox_topology_views/views.py +++ b/netbox_topology_views/views.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. import json from functools import reduce from typing import DefaultDict, Dict, Optional, Union diff --git a/setup.py b/setup.py index 4b9f7d5..085a990 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +# Modified by MrBlake for the MRB NetBox Topology Views fork: https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views +# Based on mattieserver/netbox-topology-views (Apache License 2.0). See the LICENSE and NOTICE files. from pathlib import Path from setuptools import find_packages, setup @@ -11,9 +13,10 @@ setup( description="A NetBox plugin to create Topology maps", long_description=long_description, long_description_content_type="text/markdown", - url="https://github.com/mattieserver/netbox-topology-views", + url="https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views", author="Mattijs Vanhaverbeke", - license="Apache 2.0", + maintainer="MrBlake", + license="Apache-2.0", install_requires=[], packages=find_packages(), include_package_data=True, @@ -24,6 +27,7 @@ setup( "Programming Language :: Python :: 3 :: Only", ], project_urls={ - "Source": "https://github.com/mattieserver/netbox-topology-views", + "Source": "https://git.mrblake.cc/MrBlake/mrb-netbox-topology-views", + "Upstream": "https://github.com/mattieserver/netbox-topology-views", }, )