Update dependency netbox-community/netbox to v4 #100
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot]
.This notice will be removed on 2025-10-07.
This PR contains the following updates:
v3.5.1
->v4.4.1
Release Notes
netbox-community/netbox (netbox-community/netbox)
v4.4.1
: - 2025-09-16Compare Source
Enhancements
HttpOnly
flag for CSRF cookiedeserialize_object()
utilityBug Fixes
kind
filter for interfaces in GraphQL APIValueError
complaining of missingscope
when bulk importing wireless LANsAttributeError
exception on background jobs with no request IDdistinct()
on device/VM queryset when fetching config context datav4.4.0
: - 2025-09-02Compare Source
New Features
Background Jobs for Bulk Operations (#19589, #19891)
Most bulk operations, such as the import, modification, or deletion of objects can now be executed as a background job. This frees the user to continue working in NetBox while the bulk operation is processed. Once completed, the user will be notified of the job's result.
Logging Mechanism for Background Jobs (#19816)
A dedicated logging mechanism has been implemented for background jobs. Jobs can now easily record log messages by calling e.g.
self.logger.info("Log message")
under therun()
method. These messages are displayed along with the job's resulting data. Supported log levels includeDEBUG
,INFO
,WARNING
, andERROR
.Changelog Comments (#19713)
When creating, editing, or deleting objects in NetBox, users now have the option of providing a short message explaining the change. This message will be recorded on the resulting changelog records for all affected objects.
Config Context Data Validation (#19377)
A new ConfigContextProfile model has been introduced to support JSON schema validation for config context data. If a validation schema has been defined for a profile, all config contexts assigned to it will have their data validated against the schema whenever a change is made. (The assignment of a config context to a profile is optional.)
Enhancements
HOSTNAME
configuration parameter to override the system hostname reported by NetBoxstatus
field for rack reservations/api/status/
REST API endpoint now includes the system hostnamePlugins
ObjectAction
Deprecations
Other Changes
/api/core/
nbshell
management commandv4.3.7
: - 2025-08-26Compare Source
Enhancements
Bug Fixes
empty
filter lookup on custom fieldsAttributeError
exception when assigning tags during bulk import/api/core/background-tasks/
IntegrityError
exception when a duplicate notification is triggeredValueError
exception when attempting to add power outlets to devices in bulkv4.3.6
: - 2025-08-12Compare Source
Enhancements
Bug Fixes
contains
GraphQL filter for IPAM prefixes and IP rangesis_api_request()
should not evaluate a request's content typeTypeError
exception when bulk deleting bookmarksv4.3.5
: - 2025-07-29Compare Source
Enhancements
regex
andiregex
lookups for advanced pattern matchingBug Fixes
v4.3.4
: - 2025-07-15Compare Source
Enhancements
Bug Fixes
v4.3.3
: - 2025-06-26Compare Source
Enhancements
Bug Fixes
runscript
management commandschedule_at
when invoking a custom script via the REST APITypeError
exception when creating a new module profile type with no schemapresent_in_vrf
filterDoesNotExist
exception when deleting a notification group with an associated event rulev4.3.2
: - 2025-06-05Compare Source
Enhancements
Bug Fixes
FieldError
exception when ordering circuit or tunnel terminations by the terminating objectAttributeError
exception when rendering a config template with no outputoccupied
filter should include interfaces terminating a wireless linkAttributeError
exception when sorting change history under user viewFieldError
exception when sorting tunnel terminations by tenantv4.3.1
: - 2025-05-13Compare Source
Enhancements
Job.enqueue()
Bug Fixes
FieldDoesNotExist
exception when global search results include a contactqinq_role
via the REST APIv4.3.0
: - 2025-05-01Compare Source
Breaking Changes
ALLOW_TOKEN_RETRIEVAL
configuration parameter now defaults to False.device
andvirtual_machine
foreign keys on the Service model have been replaced with a genericparent
relationship to support the assignment of services to FHRP groups as well.group
foreign key on the Contact model has been replaced with a many-to-manygroups
field.django-storages
is now a required dependency. (It will be installed automatically on upgrade.)model
attribute (usemodels
instead).New Features
Module Type Profiles & Custom Attributes (#19002)
The new module type profile model enables users to declare custom profiles for module types, with the ability to define custom attributes for each profile according to its functional role. For example, a CPU module type might declare architecture and clock speed attributes; a hard disk profile might declare attributes for type and speed.
Attributes can be declared on each profile using JSON schema, which allows for attributes to be declared as strings (text), integers, decimals, booleans, or choice fields. Profile attributes render as individual form fields when modifying a module type. Several profiles have been included by default to serve as examples, however these may be modified or removed.
Reusable Table Configurations (#14591)
After modifying the displayed columns and/or ordering for a specific object table in the user interface, users now have the option to save that configuration so that it can be reused in the future. Similar to saved filters, table configs can be shared with other users to easily replicate table layouts crafted to serve specific use cases.
Option to Treat IP Ranges as Fully Populated (#9763)
A new
mark_populated
boolean field has been added to the IPRange model. If set to true, NetBox will consider the IP range to be fully populated, and will not permit the creation of individual IP addresses within the range. For example, you might defer the management of an IP range to an external DHCP server, and wish for NetBox to treat the range as a opaque monolithic block for planning and allocation purposes.Hierarchical Device Roles (#18245)
Device roles can now be arranged hierarchically, with one role optionally serving as a parent to one or more child roles. For example, you might wish to create a generic "Server" role for devices with "Application Server" and "Database Server" roles beneath it. A device could then be assigned to any of these three roles.
Periodic Synchronization of Data Sources (#18287)
Data sources can now be configured to synchronize automatically at a specified interval, as indicated by the new
sync_interval
field. No additional system configuration is necessary to support this functionality; background jobs will be scheduled automatically by the RQ worker process.Proxy Routing (#18627)
User can now declare one or more proxy routers via the
PROXY_ROUTERS
configuration parameter to control the use of specific proxy servers for various outbound connections. For example, it is now possible to configure NetBox to use different proxies based on the type of outbound traffic or its destination.Enhancements
LOGIN_FORM_HIDDEN
configuration parameterfile_name
field to the export template modelcomments
field to all nested group models (Region, SiteGroup, Location, ContactGroup, TenantGroup, and WirelessLANGroup)status
field to the L2VPN model/api/extras/tagged-objects/
)weight
field to the Tag model to influence orderingtenant
field to the VLAN group modelstatus
field to the power outlet modelouter_height
field to the rack & rack type modelsDATABASES
andDATABASE_ROUTERS
configuration parameters to enable defining connections to external databases (e.g. for plugins)Plugins
<head>
block via the newplugin_head()
method on PluginTemplateExtensionvisible
argument to control tab renderingrelease_track
attribute to PluginConfigOther Changes
model
attribute on PluginTemplateExtension (usemodels
instead)ALLOW_TOKEN_RETRIEVAL
to Falsesqlmigrate
management commandv4.2.9
: - 2025-04-30Compare Source
Enhancements
Bug Fixes
AttributeError
exception when bulk import objects which have a multi-object custom field with a default valueDEBUG
is falseNoReverseMatch
exceptionValueError
exception when attempting to nullify interface mode when a VLAN is assignedtype
field should not be required when bulk editing interfacesstatus
field should not be required when bulk editing inventory itemsv4.2.8
: - 2025-04-22Compare Source
Enhancements
--readonly
flag on upgrade scriptBug Fixes
prepare_cloned_fields()
should validate cloning support on modelbase_choices
load_yaml()
convenience method on BaseScript should use SafeLoaderSESSION_COOKIE_SECURE
valuev4.2.7
: - 2025-04-10Compare Source
Enhancements
Bug Fixes
help_text
is passedget_field_value()
should honor null values on bound form fieldsIndexError
exception when creating multiple front ports with a labelv4.2.6
: - 2025-03-21Compare Source
Enhancements
Bug Fixes
kind
is a required field when making journal entriesv4.2.5
: - 2025-03-06Compare Source
Enhancements
Bug Fixes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.