Skip to content

netbox

Configuration Management

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/products/free-netbox-cloud/

Python Latest v4.6.2 · 1d ago Security brief →

Features

  • Acts as the central source of truth for network infrastructure data
  • Provides a comprehensive, inter‑linked data model covering racks, devices, cables, IPs, VLANs, circuits, power, VPNs and more
  • Offers programmable REST APIs to integrate with automation, monitoring and assurance tools
  • Supports custom fields, tags, plugins, granular permissions and validation rules for tailored workflows

Recent releases

View all 15 releases →
No immediate action
v4.6.2 Mixed

Unit preference + HTMX filtering + bulk label renaming

Upgrade now
v4.6.1 Breaking risk
RCE / SSRF

Accessibility + GraphQL + IP range + CVE fix

v4.6.0 New feature
⚠ Upgrade required
  • Django upgraded to version 6.0 – ensure compatibility with any Django‑specific extensions.
  • Deprecations: fields `username` and `request_id` in event data; management command `housekeeping`; custom template tag `querystring`; legacy Sentry configuration parameters; mapping `DEFAULT_ACTION_PERMISSIONS`; legacy view actions; key `models` in application registry; config parameter `LOGIN_REQUIRED`; pagination classes OptionalLimitOffsetPagination and ExpandableIPAddressField; utility function expand_ipaddress_pattern(). These will be removed in a future release.
Notable features
  • VirtualMachineType model for categorizing VMs by instance type
  • CableBundle model to group individual cables into physical runs
  • RackGroup model providing a secondary, location‑independent rack organization axis
Full changelog

New Features

Virtual Machine Types (#5795)

A new VirtualMachineType model has been introduced to enable categorization of virtual machines by instance type, analogous to how DeviceType categorizes physical hardware. VM types can be defined once and reused across many virtual machines.

Cable Bundles (#20151)

A new CableBundle model allows individual cables to be grouped together to represent physical cable runs that are managed as a unit; e.g. a bundle of 48 CAT6 cables between two patch panels. (Please note that this feature is not suitable for modeling individual fiber strands within a single cable.)

Rack Groups (#20961)

A flat RackGroup model has been reintroduced to provide a lightweight secondary axis of rack organization (e.g. by row or aisle) that is independent of the location hierarchy. Racks carry an optional foreign key to a RackGroup, and RackGroup can also serve as a scope for VLANGroup assignments.

ETag Support for REST API (#21356)

The REST API now returns an ETag header on responses for individual objects, derived from the object's last-updated timestamp. Clients can supply an If-Match header on PUT/PATCH requests to guard against conflicting concurrent updates; if the object has been modified since the ETag was issued, the server returns a 412 (Precondition Failed) response.

Cursor-based Pagination for REST API (#21363)

A new start query parameter has been introduced as an efficient alternative to the existing offset parameter for paginating large result sets. Rather than scanning the table up to a relative offset, the start parameter filters for objects with a primary key equal to or greater than the given value, enabling constant-time pagination regardless of result set size.

Enhancements

  • #12024 - Permit virtual machines to be assigned to devices without a cluster
  • #14329 - Improve diff highlighting for custom field data in change logs
  • #15513 - Add bulk creation support for IP prefixes
  • #17654 - Support role assignment for ASNs
  • #19025 - Support optional schema validation for JSON custom fields
  • #19034 - Annotate total reserved unit count on rack reservations
  • #19138 - Include NAT addresses for primary & out-of-band IP addresses in REST API
  • #19648 - Add a color custom field type
  • #19796 - Support {module} position inheritance for nested module bays
  • #19953 - Enable debugging support for ConfigTemplate rendering
  • #20123 - Introduce options to control adoption/replication of device components via REST API (replicates UI behavior)
  • #20152 - Support for marking module and device bays as disabled
  • #20162 - Provide an option to execute as a background job when adding components to devices in bulk
  • #20163 - Add changelog message support for bulk device component creation
  • #20698 - Add read-only total_vlan_ids attribute on VLAN group representation in REST & GraphQL APIs
  • #20916 - Include stack trace for unhandled exceptions in job logs
  • #21157 - Include all public model classes in export template context
  • #21409 - Introduce CHANGELOG_RETAIN_CREATE_LAST_UPDATE configuration parameter to retain creation & most recent update record in change log for each object
  • #21575 - Introduce {vc_position} template variable for device component template name/label
  • #21662 - Increase rf_channel_frequency precision to 3 decimal places
  • #21702 - Include a serialized representation of the HTTP request in each webhook
  • #21720 - Align HTTP basic auth regex of EnhancedURLValidator with Django's URLValidator
  • #21751 - Disable notifications for scripts running in the background
  • #21770 - Enable specifying columns to include/exclude on embedded tables
  • #21771 - Add support for partial tag assignment (add_tags) and removal (remove_tags) via REST API
  • #21780 - Add changelog message support to bulk creation of IP addresses
  • #21865 - Allow setting empty INTERNAL_IPS to enable debug toolbar for all clients
  • #21924 - Improve styling and consistency of floating bulk action controls
  • #22062 - Display API token ID & plaintext one time immediately upon creation

Performance Improvements

  • #21455 - Ensure PostgreSQL indexes exist to support the default ordering of each model
  • #21688 - Reduce per-position ORM lookups when tracing cable paths
  • #21788 - Optimize bulk object export to avoid timeout errors on large querysets

Plugins

  • #20924 - Introduce support for declarative layouts and reusable UI components
  • #21357 - Provide an API for plugins to register custom model actions (for permission assignment)

Deprecations

  • #21284 - Deprecate the username and request_id fields in event data
  • #21304 - Deprecate the housekeeping management command
  • #21331 - Deprecate NetBox's custom querystring template tag
  • #21881 - Deprecate legacy Sentry configuration parameters
  • #21884 - Deprecate the obsolete DEFAULT_ACTION_PERMISSIONS mapping
  • #21887 - Deprecate support for legacy view actions
  • #21890 - Deprecate models key in application registry
  • #21936 - Deprecate the LOGIN_REQUIRED configuration parameter
  • #22046 - Deprecate OptionalLimitOffsetPagination
  • #22047 - Deprecate ExpandableIPAddressField
  • #22048 - Deprecate the expand_ipaddress_pattern() utility function

Other Changes

  • #20984 - Upgrade to Django 6.0
  • #21635 - Migrate documentation site from mkdocs to Zensical
v4.5.10 Bug fix

Fixed erroneous deletion of device assignment when editing a virtual machine.

Full changelog

Bug Fixes

  • #21990 - Fix erroneous deletion of device assignment when editing a virtual machine
  • #22005 - Fix filtering of interfaces by connected status to exclude incomplete cable paths
  • #22029 - Recast empty string values as null for unique nullable fields to avoid integrity errors
  • #22031 - Fix error when adding a prefix from a VLAN with no tenant/site
  • #22084 - Correct OpenAPI schema for cable_end field on cabled objects to indicate it may be null
v4.5.9 Mixed
Notable features
  • Support filtering by multiple object-type custom fields simultaneously
  • Add profile filter support for modules
  • Include PostgreSQL database schema in system details
Full changelog

Enhancements

  • #21711 - Add profile filter support for modules
  • #21782 - Enable optional config template selection when rendering device configuration via a URL query parameter
  • #21854 - Support filtering by multiple object-type custom fields simultaneously in filter forms
  • #21866 - Include the PostgreSQL database schema in system details
  • #21875 - Allow dict subclasses for the API_TOKEN_PEPPERS configuration parameter

Performance Improvements

  • #21975 - Optimize queryset prefetching for CSV bulk export

Bug Fixes

  • #21538 - Fix incorrect contact count for contact groups with contacts assigned to nested groups
  • #21658 - Correct OpenAPI schema for available-prefixes endpoint request body
  • #21683 - Fix import of modules with front-to-rear port mappings
  • #21737 - Avoid saving invalid custom scripts to disk on upload
  • #21893 - Fix permission scope filtering for constrained object permissions
  • #21906 - Fix exception raised by REST API POST/PATCH requests missing a trailing slash
  • #21913 - Restore plugin template extensions for VRF and other declarative-layout views
  • #21917 - Fix incorrect link peers for rear ports connected via trunk cable profiles
  • #21947 - Fix saving of comments on MAC address entries
  • #21949 - Correct power draw calculations for outlets within a PDU
  • #21966 - Correct OpenAPI schema for available-VLANs endpoint request body
  • #21985 - Restore color field in front port edit form
  • #21989 - Validate EventRule.action_data as a JSON object to prevent server errors on object writes
  • #21995 - Clear unique fields when using "add another" for contacts
  • #22002 - Enable horizontal scrolling for context table panels on the IP address view

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

About

Stars
20,755
Forks
3,030
Languages
Python HTML TypeScript

Community & Support

Beta — feedback welcome: [email protected]