netbox-canvas 0.6.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. netbox_canvas-0.6.0.dist-info/METADATA +419 -0
  2. netbox_canvas-0.6.0.dist-info/RECORD +63 -0
  3. netbox_canvas-0.6.0.dist-info/WHEEL +5 -0
  4. netbox_canvas-0.6.0.dist-info/licenses/LICENSE +177 -0
  5. netbox_canvas-0.6.0.dist-info/licenses/NOTICE +8 -0
  6. netbox_canvas-0.6.0.dist-info/top_level.txt +1 -0
  7. netbox_service_canvas/__init__.py +31 -0
  8. netbox_service_canvas/api/__init__.py +0 -0
  9. netbox_service_canvas/api/serializers.py +274 -0
  10. netbox_service_canvas/api/urls.py +18 -0
  11. netbox_service_canvas/api/views.py +445 -0
  12. netbox_service_canvas/canvas_yaml.py +469 -0
  13. netbox_service_canvas/choices.py +125 -0
  14. netbox_service_canvas/compat.py +59 -0
  15. netbox_service_canvas/constants.py +65 -0
  16. netbox_service_canvas/filtersets.py +266 -0
  17. netbox_service_canvas/forms/__init__.py +4 -0
  18. netbox_service_canvas/forms/bulk_edit.py +126 -0
  19. netbox_service_canvas/forms/bulk_import.py +158 -0
  20. netbox_service_canvas/forms/filtersets.py +167 -0
  21. netbox_service_canvas/forms/model_forms.py +205 -0
  22. netbox_service_canvas/graph.py +632 -0
  23. netbox_service_canvas/graphql/__init__.py +0 -0
  24. netbox_service_canvas/graphql/filters.py +89 -0
  25. netbox_service_canvas/graphql/schema.py +39 -0
  26. netbox_service_canvas/graphql/types.py +127 -0
  27. netbox_service_canvas/migrations/0001_initial.py +165 -0
  28. netbox_service_canvas/migrations/0002_applications_notes.py +82 -0
  29. netbox_service_canvas/migrations/0003_icons_kind_edge_styles.py +26 -0
  30. netbox_service_canvas/migrations/0004_network_nodes.py +18 -0
  31. netbox_service_canvas/migrations/0005_ip_circuit_endpoints.py +33 -0
  32. netbox_service_canvas/migrations/0006_owner_related_name.py +30 -0
  33. netbox_service_canvas/migrations/0007_canvas_link_nodes.py +19 -0
  34. netbox_service_canvas/migrations/__init__.py +0 -0
  35. netbox_service_canvas/models/__init__.py +3 -0
  36. netbox_service_canvas/models/applications.py +70 -0
  37. netbox_service_canvas/models/canvas.py +246 -0
  38. netbox_service_canvas/models/connections.py +249 -0
  39. netbox_service_canvas/navigation.py +46 -0
  40. netbox_service_canvas/replace.py +133 -0
  41. netbox_service_canvas/search.py +38 -0
  42. netbox_service_canvas/signals.py +66 -0
  43. netbox_service_canvas/static/netbox_service_canvas/dist/canvas.css +1 -0
  44. netbox_service_canvas/static/netbox_service_canvas/dist/canvas.js +73 -0
  45. netbox_service_canvas/static/netbox_service_canvas/dist/chunks/elk.bundled-Zo4S1ULM.js +26 -0
  46. netbox_service_canvas/static/netbox_service_canvas/dist/chunks/html2canvas.esm-B0tyYwQk.js +22 -0
  47. netbox_service_canvas/static/netbox_service_canvas/dist/chunks/index.es-w7MLceHM.js +18 -0
  48. netbox_service_canvas/static/netbox_service_canvas/dist/chunks/jspdf.es.min-C1H5N2qJ.js +169 -0
  49. netbox_service_canvas/static/netbox_service_canvas/dist/chunks/purify.es-BKvm9NlY.js +3 -0
  50. netbox_service_canvas/tables.py +183 -0
  51. netbox_service_canvas/template_content.py +100 -0
  52. netbox_service_canvas/templates/netbox_service_canvas/application.html +5 -0
  53. netbox_service_canvas/templates/netbox_service_canvas/canvas.html +5 -0
  54. netbox_service_canvas/templates/netbox_service_canvas/canvas_editor.html +16 -0
  55. netbox_service_canvas/templates/netbox_service_canvas/connectionhop.html +5 -0
  56. netbox_service_canvas/templates/netbox_service_canvas/inc/canvas_preview.html +15 -0
  57. netbox_service_canvas/templates/netbox_service_canvas/inc/show_on_canvas_button.html +15 -0
  58. netbox_service_canvas/templates/netbox_service_canvas/inc/url_attr.html +1 -0
  59. netbox_service_canvas/templates/netbox_service_canvas/serviceconnection.html +5 -0
  60. netbox_service_canvas/ui/__init__.py +0 -0
  61. netbox_service_canvas/ui/panels.py +37 -0
  62. netbox_service_canvas/urls.py +21 -0
  63. netbox_service_canvas/views.py +478 -0
@@ -0,0 +1,419 @@
1
+ Metadata-Version: 2.4
2
+ Name: netbox-canvas
3
+ Version: 0.6.0
4
+ Summary: Interactive canvas for NetBox: services, hosts, networks, VIPs and circuits, how they connect and what breaks if one fails. Fork of netbox-service-canvas.
5
+ Author: Jasper Claus
6
+ Author-email: sieteunoseis <jeremy.worden@gmail.com>
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/sieteunoseis/netbox-canvas
9
+ Project-URL: Source, https://github.com/sieteunoseis/netbox-canvas
10
+ Project-URL: Issues, https://github.com/sieteunoseis/netbox-canvas/issues
11
+ Project-URL: Changelog, https://github.com/sieteunoseis/netbox-canvas/blob/main/CHANGELOG.md
12
+ Keywords: netbox,netbox-plugin,homelab,service-map,dependency-mapping,impact-analysis,ipam,dcim,diagram,network-documentation
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Web Environment
15
+ Classifier: Framework :: Django
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Programming Language :: JavaScript
22
+ Classifier: Topic :: System :: Networking
23
+ Classifier: Topic :: System :: Systems Administration
24
+ Requires-Python: >=3.12
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ License-File: NOTICE
28
+ Dynamic: license-file
29
+
30
+ <div align="center">
31
+
32
+ # 🗺️ NetBox Canvas
33
+
34
+ A NetBox plugin that shows on an interactive canvas which services run where, how they talk to each other, which
35
+ networks, VIPs and circuits they depend on, and what breaks if a host fails.
36
+
37
+ <sub>A fork of [NetBox Service Canvas](https://github.com/Jasper-Claus/netbox-service-canvas) by Jasper Claus, see
38
+ [Where this comes from](#where-this-comes-from).</sub>
39
+
40
+ [![NetBox](https://img.shields.io/badge/NetBox-4.7-0d6efd?logo=netbox&logoColor=white)](https://github.com/netbox-community/netbox)
41
+ [![Python](https://img.shields.io/badge/Python-3.12+-3776ab?logo=python&logoColor=white)](https://www.python.org/)
42
+ [![PyPI](https://img.shields.io/pypi/v/netbox-canvas?logo=pypi&logoColor=white)](https://pypi.org/project/netbox-canvas/)
43
+ [![License](https://img.shields.io/badge/License-Apache--2.0-green)](https://github.com/sieteunoseis/netbox-canvas/blob/main/LICENSE)
44
+ [![CI](https://github.com/sieteunoseis/netbox-canvas/actions/workflows/ci.yml/badge.svg)](https://github.com/sieteunoseis/netbox-canvas/actions/workflows/ci.yml)
45
+ [![Built with AI](https://img.shields.io/badge/Built%20with-AI-8a2be2?logo=anthropic&logoColor=white)](#built-with-ai)
46
+
47
+ [Installation](#installation) · [How it works](#how-it-works) · [Features](#features) ·
48
+ [Permissions](#permissions) · [Wiki](https://github.com/sieteunoseis/netbox-canvas/tree/main/docs/wiki) ·
49
+ [Deutsch](https://github.com/sieteunoseis/netbox-canvas/blob/main/docs/README.de.md)
50
+
51
+ </div>
52
+
53
+ <p align="center">
54
+ <img src="https://raw.githubusercontent.com/sieteunoseis/netbox-canvas/main/docs/images/demo.gif" alt="Demo: drag a NAS onto the canvas, add its services, draw a connection, run the impact analysis" width="100%">
55
+ <br><sub>Drag a host in, let <i>Add missing</i> pull in its services, draw a connection, then check what breaks if it fails.</sub>
56
+ </p>
57
+
58
+ ---
59
+
60
+ ## Installation
61
+
62
+ Requirements: NetBox 4.7 (tested on 4.7.6) and Python 3.12 or newer.
63
+
64
+ > [!WARNING]
65
+ > The plugin declares support for NetBox 4.7 (4.7.6 or newer). On a newer minor version (for example 4.8) the whole of NetBox
66
+ > refuses to start while the plugin is enabled. Before upgrading NetBox, check the
67
+ > [releases](https://github.com/sieteunoseis/netbox-canvas/releases) for a matching plugin version, or
68
+ > remove `netbox_service_canvas` from `PLUGINS` first.
69
+
70
+ ### netbox-docker
71
+
72
+ All files below are in your netbox-docker folder, next to `docker-compose.yml`. If you have never installed a plugin
73
+ there, read [No plugins installed yet?](#no-plugins-installed-yet) first.
74
+
75
+ 1. Open `plugin_requirements.txt` (for example with `nano plugin_requirements.txt`) and add this line. It goes into
76
+ the file, not into the terminal:
77
+
78
+ ```text
79
+ netbox-canvas
80
+ ```
81
+
82
+ 2. Open `Dockerfile-Plugins` and make sure it ends with these three lines. They copy the editor's JavaScript and
83
+ CSS into NetBox while the image is built. The two `COPY` lines are needed because NetBox only collects the files of
84
+ plugins listed in `plugins.py`, and netbox-docker mounts that file only when the container starts:
85
+
86
+ ```dockerfile
87
+ COPY configuration/configuration.py /etc/netbox/config/configuration.py
88
+ COPY configuration/plugins.py /etc/netbox/config/plugins.py
89
+ RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
90
+ ```
91
+
92
+ 3. Open `configuration/plugins.py` and add `"netbox_service_canvas"` to the existing `PLUGINS` list. Add it to the
93
+ list, do not replace the list. If you use netbox-branching, `netbox_branching` must stay the last entry:
94
+
95
+ ```python
96
+ PLUGINS = [
97
+ # ... your other plugins ...
98
+ "netbox_service_canvas",
99
+ ]
100
+ ```
101
+
102
+ 4. Rebuild the image and restart. Database migrations run automatically when the container starts:
103
+
104
+ ```bash
105
+ docker compose build --no-cache
106
+ docker compose up -d
107
+ ```
108
+
109
+ 5. Check: the menu shows *Plugins → Service Canvas*. Create a canvas and open its *Editor* tab. If the editor stays at
110
+ "Loading canvas…", see [Troubleshooting](#troubleshooting).
111
+
112
+ #### No plugins installed yet?
113
+
114
+ netbox-docker needs three files to install plugins. The official guide is
115
+ [Using NetBox Plugins](https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins). For this plugin
116
+ alone, the files look like this:
117
+
118
+ `plugin_requirements.txt`
119
+
120
+ ```text
121
+ netbox-canvas
122
+ ```
123
+
124
+ `Dockerfile-Plugins` (use the same image tag as in your `docker-compose.yml`)
125
+
126
+ ```dockerfile
127
+ FROM netboxcommunity/netbox:v4.7
128
+
129
+ COPY ./plugin_requirements.txt /opt/netbox/
130
+ RUN /usr/local/bin/uv pip install -r /opt/netbox/plugin_requirements.txt
131
+
132
+ COPY configuration/configuration.py /etc/netbox/config/configuration.py
133
+ COPY configuration/plugins.py /etc/netbox/config/plugins.py
134
+ RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
135
+ ```
136
+
137
+ `docker-compose.override.yml` (if the file already exists, add the `image`, `pull_policy` and `build` lines and keep
138
+ your other settings, for example `ports`)
139
+
140
+ ```yaml
141
+ services:
142
+ netbox:
143
+ image: netbox:latest-plugins
144
+ pull_policy: never
145
+ build:
146
+ context: .
147
+ dockerfile: Dockerfile-Plugins
148
+ netbox-worker:
149
+ image: netbox:latest-plugins
150
+ pull_policy: never
151
+ ```
152
+
153
+ Then continue with step 3 above.
154
+
155
+ ### Plain install (without Docker)
156
+
157
+ Run these commands as the user that owns the NetBox installation (usually with `sudo`):
158
+
159
+ ```bash
160
+ source /opt/netbox/venv/bin/activate
161
+ pip install netbox-canvas
162
+ echo netbox-canvas >> /opt/netbox/local_requirements.txt # keeps the plugin across NetBox upgrades
163
+ ```
164
+
165
+ Open `/opt/netbox/netbox/netbox/configuration.py` and add `"netbox_service_canvas"` to the existing `PLUGINS` list.
166
+ Then:
167
+
168
+ ```bash
169
+ cd /opt/netbox/netbox
170
+ python manage.py migrate
171
+ python manage.py collectstatic --no-input
172
+ sudo systemctl restart netbox netbox-rq
173
+ ```
174
+
175
+ Check as in step 5 above.
176
+
177
+ ### Configuration (optional)
178
+
179
+ The plugin works without any settings. If you want a different grid, line shape or menu placement, add this to `PLUGINS_CONFIG`
180
+ (next to your existing entries):
181
+
182
+ ```python
183
+ PLUGINS_CONFIG = {
184
+ "netbox_service_canvas": {
185
+ "grid_size": 10, # grid in pixels, default 10
186
+ "edge_line_style": "curved", # default shape of connection lines: "curved", "straight" or "step"
187
+ "top_level_menu": True, # False: list the items under NetBox's shared "Plugins" menu
188
+ },
189
+ }
190
+ ```
191
+
192
+ Single lines can still pick their own shape in the editor.
193
+
194
+ **More connection protocols.** The built-in list is TCP, UDP, HTTP, HTTPS, MQTT, gRPC, SMB, NFS, SIP, MGCP and Other.
195
+ Add your own in NetBox's `configuration.py` with NetBox's standard
196
+ [`FIELD_CHOICES`](https://netboxlabs.com/docs/netbox/configuration/data-validation/#field_choices) setting, no plugin
197
+ change needed. A trailing `+` extends the list, without it the list is replaced:
198
+
199
+ ```python
200
+ FIELD_CHOICES = {
201
+ "netbox_service_canvas.ServiceConnection.protocol+": (
202
+ ("sccp", "SCCP"),
203
+ ("ldap", "LDAP"),
204
+ ("snmp", "SNMP"),
205
+ ),
206
+ }
207
+ ```
208
+
209
+ The editor, the forms, the API and the filters all pick the extra protocols up after a NetBox restart.
210
+
211
+ ### Update
212
+
213
+ Make a database backup first. With netbox-docker, run `docker compose build --no-cache` and `docker compose up -d`
214
+ again; this installs the newest release (or the version you pinned in `plugin_requirements.txt`). With a plain
215
+ install, run `pip install --upgrade netbox-canvas` and repeat `migrate`, `collectstatic` and the restart.
216
+ Then reload the editor once with Ctrl+F5.
217
+
218
+ ### Uninstall
219
+
220
+ > [!CAUTION]
221
+ > The first step deletes all canvases, connections, hops and applications of this plugin. Make a database backup
222
+ > first. Devices, VMs and services in NetBox are not touched.
223
+
224
+ 1. Remove the plugin's tables while the plugin is still installed:
225
+ `docker compose exec netbox /opt/netbox/netbox/manage.py migrate netbox_service_canvas zero`
226
+ (plain install: `python manage.py migrate netbox_service_canvas zero`).
227
+ 2. Remove `netbox_service_canvas` from `PLUGINS` and `PLUGINS_CONFIG`, and the line from `plugin_requirements.txt`
228
+ or `local_requirements.txt`.
229
+ 3. Rebuild and restart (netbox-docker) or `pip uninstall netbox-canvas` and restart (plain install).
230
+ 4. Optional: delete the leftover static files. In netbox-docker this needs root:
231
+ `docker compose exec -u root netbox rm -rf /opt/netbox/netbox/static/netbox_service_canvas`
232
+
233
+ A German step-by-step guide with backup and restore is in
234
+ [docs/install-netbox-docker.md](https://github.com/sieteunoseis/netbox-canvas/blob/main/docs/install-netbox-docker.md).
235
+
236
+ ### Troubleshooting
237
+
238
+ | Symptom | Cause and fix |
239
+ |---|---|
240
+ | The editor stays at "Loading canvas…". The browser console shows a 404 for `canvas.js` or "MIME type ("") blocked". | The static files were not collected. Add the two `COPY` lines and the `collectstatic` line to `Dockerfile-Plugins` (step 2) and rebuild. Running `collectstatic` by hand (`docker compose exec -u root netbox /opt/netbox/netbox/manage.py collectstatic --no-input`) only helps until the container is recreated, and fails if files such as a logo are mounted into the static folder. Then reload with Ctrl+F5. |
241
+ | NetBox does not start: `ImproperlyConfigured … requires NetBox …` | The NetBox version is older than 4.7.6 or newer than 4.7. See the warning above. |
242
+ | `ModuleNotFoundError: No module named 'netbox_service_canvas'` | The image was not rebuilt, or the package line is missing from `plugin_requirements.txt`. |
243
+ | 403 when saving | The user lacks a permission. The editor names the missing one. See [Permissions](#permissions). |
244
+
245
+ ---
246
+
247
+ ## How it works
248
+
249
+ 1. Go to *Plugins → Service Canvas → Canvases → Add* and give the canvas a name, for example *Homelab*.
250
+ 2. Open the *Editor* tab.
251
+ 3. Drag devices and VMs from the sidebar onto the canvas, then click **Add missing** to pull in their services.
252
+ 4. Drag from the dot on the right of a node to another node to create a connection.
253
+ 5. Click a node or a connection to edit it. Set the connection's kind to **Proxy** if the target is only reachable
254
+ through the source, for example a service behind Traefik.
255
+ 6. Click **Impact analysis** in the node panel to see what breaks if the node fails.
256
+ 7. Find anything with the search field in the toolbar, and export the canvas as PNG, SVG, an A4 PDF or an
257
+ Excalidraw scene.
258
+
259
+ Relationships are stored as normal NetBox data, the canvas only stores the layout. The same object can appear on
260
+ several canvases. If an object is deleted in NetBox, it disappears from every canvas.
261
+
262
+ ---
263
+
264
+ ## Features
265
+
266
+ ### Model your services
267
+
268
+ - **Applications**: a new NetBox object for software made of one or more services, for example Grafana, with status,
269
+ version, URL and one of 24 icons (database, web, DNS, backup, media, …).
270
+ - **Connections** between services, devices, VMs, applications, IP addresses (e.g. load balancer VIPs) and circuits, with direction, protocol, port, a description of
271
+ the data and status (active, planned, …).
272
+ - **Proxy connections**: mark a connection as *Proxy* when the target is only reachable through the source, for
273
+ example Traefik → Paperless. Proxy chains such as Traefik → Authelia → Grafana work too.
274
+ - **Hops**: intermediate stations of a connection, such as a router, firewall, VLAN or tunnel, in a fixed order.
275
+ - **"Runs on" from NetBox**: services sit on their device or VM, and a VM pinned to a device runs on it. Nothing has
276
+ to be entered twice.
277
+
278
+ ### Draw the canvas
279
+
280
+ - **Editor**: drag and drop from a searchable sidebar. **Add missing** pulls in the services and the cabled switches
281
+ and routers of what is already on the canvas. Groups, sticky notes, automatic layout, minimap and autosave.
282
+ - **Bendable, colourable lines**: drag the + points of a selected line to route it around other nodes, and pick a
283
+ colour and a shape (curved, straight or step) per line and canvas.
284
+ - **Networks**: place prefixes and VLANs on the canvas. Devices and VMs with an IP address in a prefix, or an
285
+ interface in a VLAN, are linked to it automatically ("member of"), and a prefix is linked to its VLAN. Only the most
286
+ specific prefix on the canvas counts, so a /16 and a /24 do not both get a line. **Add missing** on a network pulls
287
+ in its members.
288
+ - **VIPs and circuits**: place IP addresses (the sidebar lists those with the VIP role) and circuits on the canvas. A
289
+ VIP runs on the device or VM it is configured on and is linked to its prefix; draw a **Proxy** connection from the
290
+ VIP to its backends. Circuits are drawn as nodes or used as hops.
291
+ - **Physical layer**: the cables documented in NetBox are drawn between devices, with the interface names as label.
292
+ Paths through patch panels count as one link. Toggle it in the toolbar.
293
+ - **Search** in the toolbar: find an object by name, host, IP or port and jump to it.
294
+ - **Node panel**: details, connections and cables of the selected object, quick edit for services and applications,
295
+ links to the NetBox pages.
296
+
297
+ ### Ask "what if this fails?"
298
+
299
+ - **Impact analysis** for any node, colour-coded on the canvas:
300
+ - **fails with it** (red): services and VMs running on the failed host,
301
+ - **affected** (orange): everything that depends on one of them, or whose connection runs through a failed hop,
302
+ - **unreachable** (yellow): everything behind a failed proxy, behind a switch that was its only cable, or whose
303
+ networks on the canvas have all failed. A prefix fails with its VLAN; a failing member never takes a network down.
304
+ - Everything comes from the documentation in NetBox. Nothing is pinged or measured, see
305
+ [What this is not](#what-this-is-not).
306
+
307
+ ### Share it and stay in NetBox
308
+
309
+ - **Preview** on the canvas page: the drawing read-only, one click to the editor.
310
+ - **Export** as PNG, SVG, a printable A4 PDF with title, date and legend, or an **Excalidraw** scene to whiteboard
311
+ a copy.
312
+ - **Integrated into NetBox**: lists, filters, CSV import, global search, REST API, GraphQL and change log for all
313
+ objects. Device, VM, service and application pages get a *Connections* tab and a *Show on canvas* button.
314
+ - **Follows NetBox**: permissions, light and dark theme, English or German depending on the NetBox language.
315
+ - **Works offline**: no CDNs, no external requests. The frontend is bundled with the plugin.
316
+
317
+ More details and screenshots are in the [wiki](https://github.com/sieteunoseis/netbox-canvas/tree/main/docs/wiki).
318
+
319
+ <table>
320
+ <tr>
321
+ <td width="50%"><img src="https://raw.githubusercontent.com/sieteunoseis/netbox-canvas/main/docs/images/impact.png" alt="Impact analysis: truenas fails, red and orange mark everything that breaks with it"></td>
322
+ <td width="50%"><img src="https://raw.githubusercontent.com/sieteunoseis/netbox-canvas/main/docs/images/new-service.png" alt="Create a service and its application in one dialog"></td>
323
+ </tr>
324
+ <tr>
325
+ <td align="center">Impact analysis: what breaks if <code>truenas</code> goes down?</td>
326
+ <td align="center">New service with an optional application, in one dialog</td>
327
+ </tr>
328
+ </table>
329
+
330
+ <sub>Screenshots show a demo homelab.</sub>
331
+
332
+ ### Service vs. Application (in one sentence each)
333
+
334
+ - **Service** (NetBox core) = *where* something listens: one port on one host, for example `grafana · TCP 3000 · nas`.
335
+ - **Application** (this plugin) = *what* it is: the software, optionally spanning several services and hosts, for
336
+ example `Grafana`.
337
+
338
+ For a simple one-port app a service is enough. When you create a service in the editor, you can create or link the
339
+ application in the same dialog.
340
+
341
+ ---
342
+
343
+ ## Permissions
344
+
345
+ | Action | Required permission |
346
+ |---|---|
347
+ | View a canvas | `view` on *canvas* (objects and connections only as far as you may view them) |
348
+ | Move, add, remove nodes | `change` on the canvas + `add/change/delete` on *canvas node* |
349
+ | Groups / notes | additionally `add/change/delete` on *canvas group* / *canvas note* |
350
+ | Create / edit / delete connections | `add/change/delete` on *service connection* |
351
+ | Hops | `add/change/delete` on *connection hop* |
352
+ | New service, "runs on", quick edit | `add` / `change` on *ipam › service* |
353
+ | Applications | `add` / `change` on *application* |
354
+
355
+ Users without change permission see the canvas in view-only mode.
356
+
357
+ ---
358
+
359
+ ## More
360
+
361
+ - [Wiki](https://github.com/sieteunoseis/netbox-canvas/tree/main/docs/wiki): getting started, editor guide, impact analysis,
362
+ export, FAQ
363
+ - REST API under `/api/plugins/service-canvas/` and GraphQL: see
364
+ [API in the wiki](https://github.com/sieteunoseis/netbox-canvas/blob/main/docs/wiki/API.md)
365
+ - Bug reports, development setup and tests: [CONTRIBUTING.md](https://github.com/sieteunoseis/netbox-canvas/blob/main/CONTRIBUTING.md)
366
+ - Changes per version: [CHANGELOG.md](https://github.com/sieteunoseis/netbox-canvas/blob/main/CHANGELOG.md)
367
+
368
+ ## Why this exists
369
+
370
+ In the words of the original author, Jasper Claus: "NetBox documents my homelab down to every cable and IP, but it
371
+ did not show which service runs on which host and who talks to whom. This plugin adds that service layer." This fork
372
+ takes it to an enterprise network: the networks, VIPs and circuits those services depend on.
373
+
374
+ ## What this is not
375
+
376
+ - **Not a monitoring tool.** Nothing is pinged, polled or measured. The canvas shows what is documented in NetBox,
377
+ and the impact analysis answers "what if this fails?" from that documentation. Live state belongs in your
378
+ monitoring (Uptime Kuma, Zabbix, Prometheus, …).
379
+ - **Not a discovery tool.** It does not scan your network or import anything automatically. Discovery and imports
380
+ are better done by the tools made for that (Diode, Orb, NAPALM, …) feeding NetBox.
381
+ - **Not another network diagram.** Topology plugins draw cables and devices. This plugin adds the service layer on
382
+ top: which service runs where, who talks to whom, through which proxy, and what breaks. The cables are only an
383
+ optional layer for the impact analysis.
384
+
385
+ ## Built with AI
386
+
387
+ The code, tests and documentation of the original plugin were written by AI ([Claude](https://claude.ai) via Claude
388
+ Code), with Jasper Claus contributing the idea and requirements, testing and feedback. This fork's additions were
389
+ written the same way. Issues and pull requests are welcome.
390
+
391
+ How it is kept maintainable: every change runs the Django tests against NetBox 4.7 and the frontend tests in CI, dependencies are updated through Dependabot, security reports go through
392
+ [SECURITY.md](https://github.com/sieteunoseis/netbox-canvas/blob/main/SECURITY.md), and every release is listed
393
+ in the changelog. The plugin only uses NetBox's own models, permissions and change log, so it does not touch NetBox
394
+ core.
395
+
396
+ ## Where this comes from
397
+
398
+ NetBox Canvas started as a fork of [NetBox Service Canvas](https://github.com/Jasper-Claus/netbox-service-canvas)
399
+ by **Jasper Claus** (Apache-2.0), at version 0.5.1. The editor, the service/application model, connections, hops,
400
+ impact analysis, exports and the documentation are his work. Thank you, Jasper, for building and sharing it.
401
+
402
+ This fork adds what we needed to document an enterprise voice and data network on the canvas: prefixes and VLANs as
403
+ nodes with derived "member of" lines, IP addresses (load balancer VIPs) and circuits as nodes and connection
404
+ endpoints, straight and step line shapes, an Excalidraw export, and export fixes. See the
405
+ [CHANGELOG](https://github.com/sieteunoseis/netbox-canvas/blob/main/CHANGELOG.md) for details. The Python module
406
+ is still `netbox_service_canvas` and the URLs still live under `/plugins/service-canvas/`, so a database set up with
407
+ the original plugin keeps working: uninstall `netbox-service-canvas`, install `netbox-canvas`, run `migrate`.
408
+
409
+ ## Support
410
+
411
+ If you find this plugin helpful, consider supporting development:
412
+
413
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-support-yellow?style=flat&logo=buy-me-a-coffee)](https://buymeacoffee.com/automatebldrs)
414
+
415
+ ## License
416
+
417
+ [Apache-2.0](https://github.com/sieteunoseis/netbox-canvas/blob/main/LICENSE), see also
418
+ [NOTICE](https://github.com/sieteunoseis/netbox-canvas/blob/main/NOTICE). Original work © Jasper Claus. Not
419
+ affiliated with NetBox Labs. NetBox is a trademark of NetBox Labs, Inc.
@@ -0,0 +1,63 @@
1
+ netbox_canvas-0.6.0.dist-info/licenses/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
2
+ netbox_canvas-0.6.0.dist-info/licenses/NOTICE,sha256=Xl3T9GLnx3pWNlIjyTwd9iqpef90qRr6WwW5fWKHyFo,314
3
+ netbox_service_canvas/__init__.py,sha256=6w5BMOMKdvNjKn27sufprR6laQuNm5yRTmOuPe_BXhk,1131
4
+ netbox_service_canvas/canvas_yaml.py,sha256=XAK5vOUJh8-h6_5s3mEiNWT-U-ej12Bwio0ox2fObh4,20051
5
+ netbox_service_canvas/choices.py,sha256=BZ1145pi4jy4Vr_v_nLj6Bpa-2dT4tqaNM_l1hV821g,3936
6
+ netbox_service_canvas/compat.py,sha256=OVA0lCCTtjVBBpcPg9SDKM8xQUmDpt56vDhYF-mCDhw,2504
7
+ netbox_service_canvas/constants.py,sha256=M_LYlQj_igj59_-3Gn6yse0ly4H1GzIpnEjt002jD90,2097
8
+ netbox_service_canvas/filtersets.py,sha256=hmLfP1CfRI-6fHLyY0aa0j2onL1MEzmowNvY9aNFQVE,9143
9
+ netbox_service_canvas/graph.py,sha256=LNePPx6Km6qZdeemxWDn3D1uSjKLwyI0rOIaWnwGkhM,28457
10
+ netbox_service_canvas/navigation.py,sha256=NsXtH2QDqaIWxoB8larBjy84BHBgmqUX50SJpqhD3Qs,1703
11
+ netbox_service_canvas/replace.py,sha256=RHaxWDQ6bIsqJymZslx7Xkz8WAsj8yOT7BHhQRLJsK4,6633
12
+ netbox_service_canvas/search.py,sha256=r-bRpPqa_mI6SqYn3QpelpHe9lMBd3ZiXiBJB647LjQ,905
13
+ netbox_service_canvas/signals.py,sha256=QHndI0R5KSIu3lrPWyA2ivSCGe-SuOcajKc9VNY5RHc,3026
14
+ netbox_service_canvas/tables.py,sha256=gayMeHUOzAvDeY-m88rD9MoUJ5iRetAKxOTcNmfFFNE,5710
15
+ netbox_service_canvas/template_content.py,sha256=pMkmilsPoqR0YR4x_hWXwRXkjVW2bPEc6vQARexH4_U,3821
16
+ netbox_service_canvas/urls.py,sha256=wCpdwaP489COKuPjnijP7W9LZzCB-yNfB0DFAowBD_w,1011
17
+ netbox_service_canvas/views.py,sha256=Ta1uG79lCZXqiyM8PGbV63-tmORxXXT5MNGdd5hpVmU,17486
18
+ netbox_service_canvas/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
+ netbox_service_canvas/api/serializers.py,sha256=_b1UXwYjFZJ5I9PvXrbLO3CiC1nc5NrRr-a8kUkw-jI,12103
20
+ netbox_service_canvas/api/urls.py,sha256=hCD41GE5T9T4L50abPrd-roBH2KT0ujjQi1xko7eRpo,613
21
+ netbox_service_canvas/api/views.py,sha256=BdRf6RN8KdN5xqz8vAVENxvm6dvo3PPgntdV40Vwt0w,20687
22
+ netbox_service_canvas/forms/__init__.py,sha256=ntoj9XdASSW6OJpwz-VJbfrSOyqmsY61wpu2rr6ERKw,105
23
+ netbox_service_canvas/forms/bulk_edit.py,sha256=tMhD0MGnjo7opV4AttqIxe0pwiynRUZ8e6lBPVpKn0I,3411
24
+ netbox_service_canvas/forms/bulk_import.py,sha256=x9ePKkKiuowMHnPGOdz31hGtuo2GV1JCTFrrOgbB9A0,4981
25
+ netbox_service_canvas/forms/filtersets.py,sha256=YyPqiIOOyOqzoS8iF4uHdTBfe3BhJQJV__TlZLSVVOU,5259
26
+ netbox_service_canvas/forms/model_forms.py,sha256=CpbRyNc94GY0AwITk6IStzlSrdxnrM3NXyoQQ13FbNQ,7165
27
+ netbox_service_canvas/graphql/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
+ netbox_service_canvas/graphql/filters.py,sha256=wqwrNylryWRG2BaoKe9IcqsitFf8NLu3nhsyEkxDUU4,3795
29
+ netbox_service_canvas/graphql/schema.py,sha256=oU4yVYl33krBqq95xtNztFoObwYXFf7i9qgOYXntc7Q,1409
30
+ netbox_service_canvas/graphql/types.py,sha256=rglqNPTRbV7EnAkwJLJv3Whb4C7yGCAeLzcbV6qfx-E,5279
31
+ netbox_service_canvas/migrations/0001_initial.py,sha256=0PdW_5Y7Vdeg1pPneAmhaOY00JP0hmb7S-PxoR-rLmU,11694
32
+ netbox_service_canvas/migrations/0002_applications_notes.py,sha256=-AlptJIQ2vwiZRMcBWU14Q-XP9af19VTkoXxFculy5Q,4936
33
+ netbox_service_canvas/migrations/0003_icons_kind_edge_styles.py,sha256=_p_Q5qY6V196-HqvYy_xXhC9LCmUuP8DR_zBw-ueLcQ,707
34
+ netbox_service_canvas/migrations/0004_network_nodes.py,sha256=ojM5MY5GWKXo2IQjuce4rr6PJ4CaxVJSi_BcJEeA33o,943
35
+ netbox_service_canvas/migrations/0005_ip_circuit_endpoints.py,sha256=d8JyARhiZNnEJZdo_56gq_uoMO4Vu9rk4gr8T5Hn0j0,3304
36
+ netbox_service_canvas/migrations/0006_owner_related_name.py,sha256=iR8qAblT856SXoDGH7iC9qjWHYJp7iABrbeI-wfjSFA,1194
37
+ netbox_service_canvas/migrations/0007_canvas_link_nodes.py,sha256=e_J1BYwX1ROJPJymVtxJRYC5sYwndviXVzygbuN4xE8,1222
38
+ netbox_service_canvas/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ netbox_service_canvas/models/__init__.py,sha256=is5R2A5tAJjJa7lwSNR3rhYdHo_0kaP6fPwplBPMVkg,77
40
+ netbox_service_canvas/models/applications.py,sha256=hDmfWnK7ChMC9sIWPK7XwaNDqe_GGcnORgAIgRjGvaA,2070
41
+ netbox_service_canvas/models/canvas.py,sha256=XNybRSfpcJUjzuFEbFskdiqm3K6HTg9CDZbUyVHEtOc,7784
42
+ netbox_service_canvas/models/connections.py,sha256=2JIhi-VIxLuobvbzhnXsaPy0EkQFwpUtCeoOmRBjMG0,8981
43
+ netbox_service_canvas/static/netbox_service_canvas/dist/canvas.css,sha256=jm7ZbMcsMPLKSjb5bfwhXNhDoBuhHvL5be6ufFSZ2u0,37469
44
+ netbox_service_canvas/static/netbox_service_canvas/dist/canvas.js,sha256=XSpvPX5aa-yOfyC28iystqIINlR2uPusEvkYnFJcQuI,539775
45
+ netbox_service_canvas/static/netbox_service_canvas/dist/chunks/elk.bundled-Zo4S1ULM.js,sha256=p_gx8wVIg4lKz0REgM9HaKguifoTGi-J_TdXf0gQuXM,1474423
46
+ netbox_service_canvas/static/netbox_service_canvas/dist/chunks/html2canvas.esm-B0tyYwQk.js,sha256=wr0b3dB5b1j95uITwGGychJW1GNmvO4AyFMIGeX7xXM,202363
47
+ netbox_service_canvas/static/netbox_service_canvas/dist/chunks/index.es-w7MLceHM.js,sha256=gaf04VQdHQEjpVCT5WD03D0lnQ9gmQuKvhxDLeLgWEQ,159765
48
+ netbox_service_canvas/static/netbox_service_canvas/dist/chunks/jspdf.es.min-C1H5N2qJ.js,sha256=GmhcYp72ot5VqQ4sQOlIMa3D79m-E0kR7gzEwPx-moc,390589
49
+ netbox_service_canvas/static/netbox_service_canvas/dist/chunks/purify.es-BKvm9NlY.js,sha256=JOfzwmeMNqfPPhPTvcWoiYUmAqASVvn6fKOYRPrq8Sg,31549
50
+ netbox_service_canvas/templates/netbox_service_canvas/application.html,sha256=TZJJFxNQO05-ndf8Yg3p74SnXP4Z6yijKt1_8Vfq7No,234
51
+ netbox_service_canvas/templates/netbox_service_canvas/canvas.html,sha256=TZJJFxNQO05-ndf8Yg3p74SnXP4Z6yijKt1_8Vfq7No,234
52
+ netbox_service_canvas/templates/netbox_service_canvas/canvas_editor.html,sha256=2uehC8SDjhTjy1sMRBqXS-0qiE-Lo45VBlLJvNTSelk,643
53
+ netbox_service_canvas/templates/netbox_service_canvas/connectionhop.html,sha256=TZJJFxNQO05-ndf8Yg3p74SnXP4Z6yijKt1_8Vfq7No,234
54
+ netbox_service_canvas/templates/netbox_service_canvas/serviceconnection.html,sha256=TZJJFxNQO05-ndf8Yg3p74SnXP4Z6yijKt1_8Vfq7No,234
55
+ netbox_service_canvas/templates/netbox_service_canvas/inc/canvas_preview.html,sha256=r3mnka12YkJ_w1K5sZvp0PQRIY7bBOY-72N9bbi9jJI,746
56
+ netbox_service_canvas/templates/netbox_service_canvas/inc/show_on_canvas_button.html,sha256=Gj2DKTJ1Y1ID2y8VjN34W6w6dQQdWVXL_ECNNk4tPQU,708
57
+ netbox_service_canvas/templates/netbox_service_canvas/inc/url_attr.html,sha256=kWA0atqr7IktMqSBelQV6XQR3_kGcAVFp8NIaAAwmO8,105
58
+ netbox_service_canvas/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
+ netbox_service_canvas/ui/panels.py,sha256=F-tDSi_4Y8EAaNG7vnmn_-O5jgOqYR2kOzlFZr8ccPA,1851
60
+ netbox_canvas-0.6.0.dist-info/METADATA,sha256=X1JPN2gt-vL5h972F3woX4QY3LnyHg51WGiwoqe6pRw,21644
61
+ netbox_canvas-0.6.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
62
+ netbox_canvas-0.6.0.dist-info/top_level.txt,sha256=AUl6j_H0CNbVmUiXcw1xm8Flw6nw45Ymoy2oeCoj-Fo,22
63
+ netbox_canvas-0.6.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+