Skip to main content

netbox-ipam-treeview-plugin

ci PyPI Python

A DDI-style, collapsible tree view of NetBox IPAM. Instead of a flat, paginated list of prefixes, you start from the top-level supernets and drill down: VRF → Aggregate → Prefix → child prefix, with free space shown in place, one-click Expand all / Collapse all, and the tree remembering what you had open.

Prefix tree

Features

  • Collapsible tree: roots are VRFs (Global first) and the aggregates holding their prefixes; children load lazily as you expand, so it stays fast on large IPAMs.
  • Expand all / Collapse all for the whole tree or any subtree (Alt+click a caret, or * on a focused row), capped by expand_all_limit so a click can never render an unbounded page.
  • Free space between children, shown as greyed rows with a one-click Create that pre-fills the prefix and VRF.
  • IPv4 / IPv6 / Both selector in the toolbar, remembered in the browser.
  • Utilization bars with the same numbers as NetBox's own prefix views, computed in bulk.
  • Row actions (add child, edit, delete), shown only when you have the permission.
  • NetBox filters: the native prefix filter form; matches are shown with their ancestors as greyed context.
  • Column picker, saved per user.
  • Remembers state: expanded nodes are restored when you come back.
  • Keyboard navigation (treegrid pattern): ↑ ↓ move, → expand / first child, ← collapse / parent, * expand subtree, Enter opens the prefix.
  • Everywhere it is useful: a Prefix Tree page, a Tree view button on the native prefix list (carrying your filters), and Tree tabs on Prefix, Aggregate and VRF pages. Each can be switched off.
  • Light and dark themes.

Compatibility

Plugin NetBox Python
0.2.x 4.7.2 – 4.7.x 3.12 – 3.14
0.1.x 4.7.0 – 4.7.x 3.12 – 3.14

From 0.2.0 on, NetBox 4.7.2 or a later 4.7.x release is required: 4.7.0 and 4.7.1 recorded plaintext API tokens created through background bulk requests in job results. See the per-release table.

Installation

source /opt/netbox/venv/bin/activate
pip install netbox-ipam-treeview-plugin

Add it to configuration.py (or local_requirements.txt + plugins.py with netbox-docker):

PLUGINS = ["netbox_ipam_treeview"]

Then collect the static files and restart NetBox:

python /opt/netbox/netbox/manage.py collectstatic --no-input
sudo systemctl restart netbox

The tree lives at /plugins/ipam-tree/ (menu: IPAM Tree → Prefix Tree; set menu_location = "ipam" to have it right below IPAM → Prefixes instead).

Configuration

All settings are optional:

PLUGINS_CONFIG = {
    "netbox_ipam_treeview": {
        "expand_all_limit": 5000,
    },
}
Setting Default Meaning
show_menu_item True Show the Prefix Tree menu entry
menu_location "menu" "menu": the plugin's own IPAM Tree menu; "plugins": the shared Plugins menu; "ipam": IPAM menu, right below Prefixes
show_list_toggle True Tree view button on the native prefix list
show_prefix_tab True Tree tab on prefix pages
show_aggregate_tab True Tree tab on aggregate pages
show_vrf_tab True Tree tab on VRF pages
group_by_vrf True Top level is one node per VRF; False mixes all VRFs under the aggregates (add the VRF column)
show_aggregates True Aggregates as a tree level
show_free_space True Default for free-space rows (each user can toggle it)
gaps_respect_mark_utilized True No free-space rows under pools and mark utilized prefixes
max_gap_rows 64 Free-space rows per node; the rest are summarised in one row
expand_all_limit 5000 Row cap for Expand all and filtered trees
default_columns status, utilization, scope, VLAN, tenant, role, description, actions Columns before a user picks their own

Permissions

  • The page requires ipam.view_prefix; every row is restricted to what the user may view.
  • Aggregates appear only for users with ipam.view_aggregate; VRF groups only for VRFs the user may view.
  • With constrained (object-level) permissions, prefixes hang under their nearest visible ancestor, and free-space rows are not shown, because space taken by prefixes the user cannot see would look free.
  • Delete links go to NetBox's own confirmation page.

Development

The dev stack is netbox-docker with the plugin mounted live, seeded with ~8,000 RFC 1918 / ULA prefixes across VRFs, aggregates, sites and VLANs.

make dev          # build and start NetBox on http://127.0.0.1:8000 (admin / admin; NETBOX_PORT to change)
make seed         # load the demo dataset (make reseed to wipe and reload, make seed-big for ~5x)
make test         # pure unit tests (no NetBox needed)
make test-netbox  # integration tests inside the NetBox container
make lint         # ruff
make dist         # build and check the wheel and sdist

Documentation

License

Apache-2.0

Metadata

Release files for netbox-ipam-treeview-plugin 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-ipam-treeview-plugin 0.3.0
File Size Uploaded Provenance Actions
netbox_ipam_treeview_plugin-0.3.0.tar.gz 35.2 kB With provenance Details for netbox_ipam_treeview_plugin-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-ipam-treeview-plugin 0.3.0
File Interpreter ABI Platform Actions
netbox_ipam_treeview_plugin-0.3.0-py3-none-any.whl Python 3 none any Details for netbox_ipam_treeview_plugin-0.3.0-py3-none-any.whl

Total release size: 77.4 kB

Release files / netbox_ipam_treeview_plugin-0.3.0.tar.gz

Download URL netbox_ipam_treeview_plugin-0.3.0.tar.gz
Size 35.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb485a9a7e6eecc02411e65b159254ec473cc7055c0d70a39acf759148004cae
BLAKE2b-256 checksum
How to use checksums
8d42c0c5320cfbb8e1ce9af8f1448864e32cc6c93a67197371ac926ea9bf4444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / netbox_ipam_treeview_plugin-0.3.0-py3-none-any.whl

Download URL netbox_ipam_treeview_plugin-0.3.0-py3-none-any.whl
Size 42.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9263287cb137288776b6a2b45aed53722e84dffc4c22c22ae0cea4ba9579b3d
BLAKE2b-256 checksum
How to use checksums
ccbcf82b5323d0367f2854cc06c6697af150c60e2d94be1ce3bade1015a9f1b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for netbox-ipam-treeview-plugin 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_ipam_treeview_plugin-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page