Skip to main content

Folder-tree view of IP prefixes for NetBox — collapsible hierarchy, per-prefix IP browsing, filter-aware.

Project description

NetBox FolderView

A NetBox plugin that provides a folder-tree view of IP prefixes, similar to the experience offered by SolarWinds IPAM or phpIPAM. Browse your prefix hierarchy visually, drill into assigned IP addresses, and filter the tree using NetBox's native filter and saved-filter system — all without leaving the familiar NetBox UI.


Compatible NetBox Versions

Plugin Version NetBox Version
0.1.x 4.5.x+

Note: This plugin relies on internal NetBox APIs (restrict(), UserConfig, PrefixFilterSet, SavedFilter). Compatibility with versions below 4.5.0 is not guaranteed.


Features

  • Two-pane tree view — prefix hierarchy on the left, IP addresses on the right
  • Lazy loading — child prefixes and IP addresses are fetched on demand; no performance penalty on large datasets
  • Filter-aware tree — apply any NetBox prefix filter and the tree reorganizes to show only matching prefixes; filtered-out parent prefixes are skipped and their children become root nodes automatically
  • Saved filters — the saved filter dropdown from the standard Prefixes view is available directly in the tree header
  • Column configuration — right-pane IP table columns are configurable per-user, persisted via NetBox's native UserConfig mechanism
  • Respects NetBox RBAC — all queries are restricted to the authenticated user's object-level permissions
  • Read-only — no create, edit, or delete actions; purely a visualization layer over existing data

Installation

1. Install the package

Install into the same Python environment as NetBox.

From PyPI:

pip install netbox-folderview

From source (development):

git clone https://github.com/averyhabbott/netbox-folderview.git
cd netbox-folderview
pip install -e .

2. Add to NetBox configuration

In your NetBox configuration.py:

PLUGINS = [
    'netbox_folderview',
]

PLUGINS_CONFIG = {
    'netbox_folderview': {},
}

3. Restart NetBox

No database migrations are required — the plugin is stateless.

# Example for a systemd-managed installation
sudo systemctl restart netbox netbox-rq

How to Use

Navigating to the Prefix Tree

After installation, a FolderView section appears in the NetBox left-hand navigation menu. Click Prefix Tree to open the view.

The Tree Tab

The main view is split into two panes:

Left pane — Prefix Tree

  • Displays your prefix hierarchy as a collapsible folder tree
  • Top-level prefixes (those with no parent prefix) appear as root nodes; aggregates are excluded
  • Click the chevron (▶) beside a prefix to expand it and reveal child prefixes; a loading indicator appears while children are fetched. Click the chevron again to collapse.
  • Single-click a prefix to load its assigned IP addresses in the right pane; the selected prefix is highlighted
  • Double-click a prefix to navigate to its full NetBox detail page

Right pane — IP Addresses

  • Displays the IP addresses assigned within the selected prefix
  • Paginated using NetBox's standard pagination controls
  • Double-click any IP address to navigate to its NetBox detail page
  • Click Configure to choose which columns are shown; your preferences are saved per-user

Filtering the Tree

Use the controls at the top of the Tree tab to narrow what appears:

  • Quick search — type to filter the visible tree by prefix or description
  • Saved filter dropdown — apply any saved filter you've created on the standard Prefixes page
  • Filters tab — switch to the Filters tab for the full NetBox prefix filter panel (VRF, tenant, site, role, status, and more); click Search to apply; the tree reorganizes to show only matching results

When filters are active, a summary of applied filters appears above the tree. Click the Reset button on the Filters tab to clear all filters.


Development

To run against a local NetBox instance:

# Clone and install in editable mode
git clone https://github.com/averyhabbott/netbox-folderview.git
pip install -e ./netbox-folderview

# Add to your NetBox configuration.py (see Installation above)

# Start the NetBox dev server (no migrations needed)
cd netbox
python manage.py runserver

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_folderview-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_folderview-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file netbox_folderview-0.1.1.tar.gz.

File metadata

  • Download URL: netbox_folderview-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for netbox_folderview-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4ad081d1d336893cf260d83398972d73b29af31787b82393d95f9f2b8dd3705b
MD5 2c989a12d5a4234d6f96627cda493f08
BLAKE2b-256 9c93d1d6d236e822b038af832ebf25b07592c7843b13c43e5fe9d74c794b4bf9

See more details on using hashes here.

File details

Details for the file netbox_folderview-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_folderview-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f31f4f23cc85053548fea70f7ab2957ee7a47448d62a98da80d6d1ac6b3295c8
MD5 1c78cd3c339b323ba53887a6b83a5073
BLAKE2b-256 681a5b87291ca023579e95f4a6e6e62989f34c0af8c5275146eb57417ce3d11c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page