v3.7-beta1
版本发布时间: 2023-12-05 21:30:32
netbox-community/netbox最新发布版本:v4.1.2(2024-09-27 04:32:18)
:warning: This is a beta release intended only for testing and evaluation. Do not deploy it in a production environment. No upgrade path to future releases will be provided.
Breaking Changes
- The following fields have been removed from the Webhook model:
content_types
,type_create
,type_update
,type_delete
,type_job_start
,type_job_end
,enabled
, andconditions
. Webhooks are now tied to events via event rules. Existing webhooks will have event rules created automatically upon upgrade. - The
ui_visibility
field on the custom field model has been replaced with two new fields:ui_visible
andui_editable
. Existing values will be migrated automatically upon upgrade. - The
FeatureQuery
class for querying content types by model feature has been removed. Plugins should now use the newwith_feature()
manager method on NetBox's proxy model for ContentType. - The ConfigRevision model has been moved from
extras
tocore
. Configuration history will be retained throughout the upgrade process. - The L2VPN and L2VPNTermination models have been moved from the
ipam
app to the newvpn
app. All object data will be retained, however please note that the relevant API endpoints have moved to/api/vpn/
. - The
CustomFieldsMixin
,SavedFiltersMixin
, andTagsMixin
classes have moved from theextras.forms.mixins
module tonetbox.forms.mixins
.
New Features
VPN Tunnels (#9816)
Several new models have been introduced to enable VPN tunnel management. Users can now define tunnels with two or more terminations to replicate peer-to-peer or hub-and-spoke topologies. Each termination is made to a virtual interface on a device or VM. Additionally, users can define IKE and IPSec policies which can be applied to tunnels to document encryption and authentication strategies.
Event Rules (#14132)
This release introduces event rules, which can be used to send webhooks or execute custom scripts automatically in response to NetBox events. For example, it's now possible to run a custom script whenever a new site is created with a particular status or tag.
Event rules replace and extend functionality that was previously built into the webhook model. Event rules will be created for any existing webhooks upon upgrade.
Virtual Machine Disks (#8356)
A new VirtualDisk model has been introduced to enable tracking the assignment of discrete virtual disks to virtual machines. The original size
field has been retained on the VirtualMachine model, and will be automatically updated with the aggregate size of all assigned virtual disks. (Users who opt to eschew the new model may continue using the VirtualMachine size
attribute as before.)
Object Protection Rules (#10244)
A new PROTECTION_RULES
configuration parameter is now available. Similar to how custom validation rules can be used to enforce certain values for object attributes, protection rules guard against the deletion of objects which do not meet specified criteria. This enables an administrator to prevent, for example, the deletion of a site which has a status of "active."
Improved Custom Field Visibility Controls (#13299)
The old ui_visible
field on the custom field model](https://docs.netbox.dev/en/feature/models/extras/customfield/) has been replaced by two new fields, ui_visible
and ui_editable
, which control how and whether a custom field is displayed when view and editing an object, respectively. Separating these two functions into discrete fields enables more control over how each custom field is presented to users. The values of these fields will be appropriately set automatically during the upgrade process depending on the value of the original field.
Improved Global Search Results (#14134)
Global search results now include additional context about each object, such as a description, status, and/or related objects. The set of attributes to be displayed is specific to each object type, and is defined by setting display_attrs
under the object's SearchIndex class.
Table Column Registration for Plugins (#14173)
Plugins can now register their own custom columns for inclusion on core NetBox tables. For example, a plugin can register a new column on SiteTable using the new register_table_column()
utility function, and it will become available for users to select for display.
Data Backend Registration for Plugins (#13381)
Plugins can now register their own data backends for use with synchronized data sources. This enables plugins to introduce new backends in addition to the git, S3, and local path backends provided natively.
Enhancements
- #12135 - Avoid orphaned interfaces by preventing the deletion of interfaces which have children assigned
-
#12216 - Add a
color
field for circuit types - #13230 - Allow device types to be excluded from consideration when calculating a rack's utilization
-
#13334 - Added an
error
field to the Job model to record any errors associated with its execution - #13427 - Introduced a mechanism for omitting models from general-purpose lists of object types
- #13690 - Display any dependent objects to be deleted prior to deleting an object via the web UI
- #13794 - Any models with a relationship to Tenant are now included automatically in the list of related objects under the tenant view
-
#13808 - Added a
/render-config
REST API endpoint for virtual machines - #14035 - Order objects of equivalent weight by value in global search results to improve readability
- #14156 - Enable custom fields for contact assignments
-
#14361 - Add a
description
field for webhooks -
#14365 - Introduced
job_start
andjob_end
signals
Other Changes
-
#13550 - Optimized the format for declaring view actions under
ActionsMixin
(backward compatibility has been retained) -
#13645 - Installation of the
sentry-sdk
Python library is now required only if Sentry reporting is enabled -
#14036 - Move plugin resources from the
extras
app intonetbox
(backward compatibility has been retained) -
#14153 - Replace
FeatureQuery
with newwith_feature()
method on ContentType manager -
#14311 - Move the L2VPN models from the
ipam
app to the newvpn
app -
#14312 - Move the ConfigRevision model from the
extras
app tocore
-
#14326 - Form feature mixin classes have been moved from the
extras
app tonetbox
-
#14395 - Moved
extras.webhooks_worker.process_webhook()
toextras.webhooks.send_webhook()
(backward compatibility has been retained)