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 — columns in both the prefix tree and IP address table 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 (available in both panes) 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.2.tar.gz (11.7 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.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netbox_folderview-0.1.2.tar.gz
  • Upload date:
  • Size: 11.7 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.2.tar.gz
Algorithm Hash digest
SHA256 2eb02377b6820d870079d8ea0f9fdab8228be4dc91a7ecfdd5662f8061ba2de8
MD5 74d2d92082c28c5bbadd0c8db5c2ee23
BLAKE2b-256 337cc0579d001b15ce61b61764097223dcc867932d6ceb4491308307bcdd3b29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netbox_folderview-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7077168ca707341cb19a78c80c16a4d8ad80b9a27b353eae61e96cf8bf2c10a8
MD5 5d821739c1a6d7d652a73866a20a43c0
BLAKE2b-256 3561d6916b571e6e7d2c8cf9b7222b4f77c30f67a5d73d49f84c7bbfb348ed64

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