Repository navigation
Releases
Releases · sieteunoseis/netbox-canvas
v0.9.0
v0.8.0
Added
- Undo / redo in the editor: toolbar buttons and Ctrl+Z / Ctrl+Shift+Z (Ctrl+Y). Covers moves, resizes, removed boxes, groups, notes and line styles (up to 100 steps); a removed box comes back on the next save.
- Animated lines: per-connection "Animate line" switch in the line panel. Dashes move from source to target; two-way lines pulse; disabled connections stay still; honours reduced-motion. Stored in the canvas line styles (no migration), kept in YAML export/import (
line: {animate: true}) and animated in the tile picture and share image. - Message path: number lines 1, 2, … ("Step in the message path" in the line panel) and a dot travels them in order, looping; lines with the same number run together. Play/pause button on the canvas; also plays in the tile picture and share image. Labels show the step number.
- Line ends: choose the side a line starts and ends at ("Starts at" / "Ends at"), stored per connection on the canvas and in YAML (
from,to,step).
Changed
- Lines attach to the side of each box that faces the other box (or the nearest bend point) instead of always right → left, in the editor, the Excalidraw export and the server picture. Several lines between the same two boxes are drawn side by side with their labels spread out. Connect dots show only on hover or selection.
- Connection lines (and lines to linked canvases) are drawn in front of the boxes, so arrowheads are never hidden behind a node.
v0.7.0
Added
- Canvas tiles: the canvas list shows tiles (picture of the canvas, name, description, site, node count, last update,
Open editor / Details), with a Table toggle for NetBox's regular table (bulk edit, export). The pictures come
fromcanvases/<id>/thumbnail.svg(same drawing as the share image, behind login, view permission) and follow
the NetBox light/dark theme (?theme=dark). - Share image link: the canvas page has a Share image panel that creates a public link to an SVG of the canvas
(/plugins/service-canvas/share/<token>.svg, no login) to embed in wiki or Jira pages; it is drawn from the saved
layout on every request, so it is always current. Only the SHA-256 of the token is stored (migration0009), the
link is shown once in the panel with a Copy button; Regenerate replaces it, Revoke switches it off. Needs
change permission on the canvas.?width=900sets the displayed size; links to other canvases are drawn with
their connections ("↗ far object · protocol").
The image is drawn in the editor's light style (status edge, icons, type tags, details, line labels), with a
placeholder image for revoked links. - Redundancy groups for connections: connections from the same source with the same group (e.g. a gateway's
primary and backup MGCP call agents) are alternatives, so impact analysis marks the source only when all of them are
broken; proxies to the same target with one group keep it reachable while one works. Disabled alternatives count as
unavailable. Field in the connection panel (with suggestions), forms, bulk edit/import, API and YAML export.
Migration0008adds the column. - Canvas links in impact analysis: connections through a link to another canvas count, with the far object
behind the link node. Analysing a link node means "what if everything on that canvas that connects here fails";
a link node is marked when something on the far side is affected. - Device and VM icons: device nodes show an icon for their role (router, switch, firewall, load balancer, voice
gateway, access point, wireless controller, hypervisor, …; UC application roles such as "UCCE Router" stay servers)
and the manufacturer in their subtitle; VMs show their platform (Windows, Ubuntu, Red Hat, Linux, …). New plugin
settingrole_icons({role slug: "mdi-…"}) sets the icon for any role. NetBox's icon set has no vendor logos. - More application icons: router, switch, firewall, load balancer, access point, voice/VoIP, phone, server, cloud
service, Windows, Linux, Kubernetes, Microsoft Teams, AWS, Azure.
Changed
- PNG and SVG exports always use the light theme (like the PDF); in dark mode they came out with mismatched colours.
Fixed
- Nodes that were never resized grew with long text in the editor (every node counted as resized, because the
measured size was taken for a stored one), so the editor, exports and the share image disagreed. Nodes are 220 px
again unless resized, and a resize is saved.
v0.6.0
First release of NetBox Canvas (netbox-canvas on PyPI), a fork of
NetBox Service Canvas 0.5.1 by Jasper Claus. The Python
module (netbox_service_canvas), the URLs and the database tables are unchanged, so an existing installation can
switch packages and run migrate.
Added
- Canvas preview on the canvas detail page: the drawing is shown read-only (zoom with the buttons, pan by
dragging; the mouse wheel keeps scrolling the page) with an Open editor button, so a canvas can be looked at
without opening the editor. - Preview clicks: on the canvas detail page, clicking an object shows a card with View in NetBox and Show in
editor (opens the editor focused on it), or Open canvas / Canvas details for a link to another canvas;
double-click opens the object (or the linked canvas) directly. Long names and descriptions wrap (up to three lines) inside the card. - YAML export and import: YAML in the toolbar downloads the canvas as text (groups, nodes, notes, its
connections with hops and line routing), objects named instead of numbered (vm: ucce15pg1a,
service: grafana@nas, "name@qualifier" where a name is not unique), positions absolute. Import replaces the
canvas layout with an edited file and creates or updates its connections (others are kept); Check runs it as a dry
run first and shows what would change. Import into a new empty canvas to copy one. API:
GET canvases/<id>/export/,POST canvases/<id>/import/(yaml,dry_run). - Canvas links: place another canvas on a canvas (sidebar tab Canvases); double-click it to open that canvas.
Connections from objects here to objects that are only on the linked canvas are drawn to the link node, dashed and
labelled "↗ far object · protocol port", so e.g. Side A → Side B traffic shows on both sides without duplicating
objects. Migration0007only widens the allowed node types. - Replace an object (node panel → Replace…), e.g. after a server or VM upgrade: the node keeps its position,
group and size and points at the new object. Everywhere (default) does this on every canvas you may change and
moves the old object's connections and hops to the new one, so the lines and their routing stay; otherwise only the
current canvas changes. API:POST canvases/<id>/replace-object/withold,newandeverywhere. - Lining nodes up: alignment guides snap a dragged node to the edges and centres of the other nodes and show a
guide line (toggle in the toolbar, next to Snap to grid), and with two or more nodes selected the toolbar offers
align left/centre/right/top/middle/bottom and, from three, space evenly across or down. - Resizable nodes: in edit mode, drag the corners of a selected object to make it wider or taller (for long names
or to line boxes up); the size is saved with the layout. Reset size in the node's toolbar goes back to the default. - Connection protocols SIP and MGCP (the editor suggests them for ports 5060/5061 and 2427/2727). The protocol
list is extensible with NetBox'sFIELD_CHOICES(netbox_service_canvas.ServiceConnection.protocol+), and the
editor now takes the list from the server, so added protocols appear there too. - Plugin setting
top_level_menu(defaultTrue):Falselists the canvas, application and connection items under
NetBox's shared Plugins menu instead of an own sidebar menu.
Changed
- Package renamed to
netbox-canvas; repositorysieteunoseis/netbox-canvas. - Supports NetBox 4.7 only (
min_version4.7.6). Migration0006records NetBox 4.7'srelated_name='+'on the
inherited owner fields (state only, no database change).
Added
- Line shapes (#14): connection lines can be
drawn curved (as before), straight or as steps with right angles. The default comes from the new plugin setting
edge_line_style(curved,straightorstep; defaultcurved); a single line can choose its own shape in the
connection panel next to the colour. The shape is stored with the line's bend points and colour in
Canvas.edge_styles("line": "step"), so no migration is needed. Bend points work with every shape. - IP addresses and circuits as canvas nodes, connection endpoints and (circuits) hops. The sidebar gets VIPs (IP
addresses with the VIP role) and Circuits tabs. An IP address "runs on" the device/VM it is configured on and is
linked to the most specific prefix on the canvas, so a VIP fails with its load balancer and a Proxy connection from
it makes its backends unreachable. "Show on canvas" appears on the pages of every object type a canvas can hold.
Migration0005only widens the allowed object types of nodes, connection endpoints and hops. - Networks on the canvas (#14): prefixes and VLANs can be placed like other objects. "Member of" lines to them are
derived from NetBox: devices/VMs with an IP address in the prefix (most specific prefix on the canvas only, VRF-aware
like NetBox), devices/VMs with an interface in the VLAN (untagged or tagged), and a prefix's VLAN. They are shown
with the "runs on" lines, take part in the impact analysis (members whose networks all failed become unreachable, a
prefix fails with its VLAN) and Add missing suggests the members of a network. Networks cannot be connection
endpoints. Migration0004only widens the allowed object types of canvas nodes. - Excalidraw export: the toolbar's Excalidraw button downloads the canvas as a
.excalidrawscene to open at
excalidraw.com (or any Excalidraw whiteboard): objects become boxes with name, type, IP and status colour, groups
dashed frames, notes sticky boxes, and connections arrows bound to the boxes, with their label, bend points and
colour. Each object links back to its NetBox page. It is a copy; changes on the whiteboard do not go back to NetBox.
Fixed
- PNG, SVG and PDF exports lost the lines coloured by CSS (runs on, part of, cables) and drew line labels as black
boxes. The computed stroke/fill of every SVG shape is now copied inline for the export, andhtml-to-imageis
pinned to 1.11.11 (later versions drop React Flow edges, see React Flow's "download image" example).