-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release v3.7.0 #14636
Merged
Merged
Release v3.7.0 #14636
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Merge actions and action_perms into a single mapping * Update obsolete permission maps * Update obsolete action lists * Normalize empty permission mappings * Cleanup * Add deprecation warnings * Introduce DEFAULT_ACTION_PERMISSIONS constant
* 12216 add color to model * 12216 add forms, serializers for color * 12216 color to detail view, add type to svg * 12216 add color to svg * 12216 review changes
* 13230 add exclusion flag to device type * 13230 forms, detail views * 13230 add tests * 13230 extraneous model field * 13230 extraneous form field * Update netbox/dcim/forms/bulk_edit.py Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com> * 13230 review feedback --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Initial work on #13381 * Fix backend type display in table column * Fix data source type choices during bulk edit * Misc cleanup * Move backend utils from core app to netbox * Move backend type validation from serializer to model
* Closes #12135: Prevent the deletion of interfaces with children * Change PROTECT to RESTRICT * Extend handle_protectederror() to also handle RestrictedError * Fix string translation * Update migrations * Support bulk removal of parent interfaces via UI if all children are included * Add support for the bulk deletion of restricted objects via REST API
* show objects that would be deleted by cascade * some items were not showing (eg ips on devices) * dont include the item being deleted in the list of related items * Revert "dont include the item being deleted in the list of related items" This reverts commit 298a786. * cleanup - migrate code to use collector directly instead of the NestedObjects wrapper from admin.utils - adjust object names and text output * requested adjustments * remove comma from end of list * linting * refactor, add accordion * migrate to defaultdict, use title for capitalisation of accordian titles * Misc cleanup --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
…results (#14154) * WIP * Add display_attrs for all indexers * Linkify object attributes * Clean up prefetch logic * Use tooltips for display attributes * Simplify template code * Introduce get_indexer() utility function * Add to examples in docs * Use tooltips to display long strings
…#14287) * Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint * Update Docstring "Device" -> "Virtual Machine" Docstring should mention "..this Virtual Machine" instead of "...this Device", thanks @LuPo! * Move config rendering logic to new RenderConfigMixin * Add tests for render-config API endpoint --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 8356 add virtual disk model * 8356 add supplemental forms * 8356 add menu * 8356 cleanup views * 8356 virtual machine tab * 8356 migrations * 8356 vm disk tables * 8356 cleanup * 8356 graphql * 8356 graphql * 8356 add components button * 8356 bulk add on virtualmachine * 8356 bulk add fixes * 8356 api tests * 8356 news tests add rename * 8356 VirtualDiskCreateForm * 8356 fix test * 8356 add todo to remove disk from vm * 8356 review changes * 8356 fix test * 8356 deprecate disk field * 8356 review changes * 8356 fix test * 8356 fix test * Simplify view actions * 8356 review changes * 8356 split trans tag * 8356 add total virtual disk size to api * 8356 add virtual disk list to virtual machine detail view * 8356 move virtual disk size to property * 8356 revert property * Tweak display of deprecated disk field * 8356 render single disk field * 8356 update serializer * 8356 model property * 8356 fix test * 8356 review changes * Revert disk space annotation * Use existing disk field to store aggregate virtual disk size * Introduce abstract ComponentModel for VM components * Add search index for VirtualDisk * Misc cleanup --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
#14289) * Add ui_visible and ui_editable fields * Extend migration to map new visible/editable values * Remove ui_visibility field * Update docs
* 14424 remove ChangeLoggedModel from StagedChange * 14424 rename migration
* 14147 Prevent logging to Change Log when no changes are made * 14147 add test * 14147 add exclude_fields to serialize_object * 14147 make skip empty default to True * 14147 remove override of to_objectchange * Misc cleanup --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
…E & IPSec proposals
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Breaking Changes
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. New event rules will be created for any existing webhooks automatically upon upgrade.ui_visibility
field on the custom field model has been replaced with two new fields:ui_visible
andui_editable
. These new fields will have their values mapped from the original field automatically upon upgrade.FeatureQuery
class used internally for querying content types by model feature has been removed. It has been replaced by the newwith_feature()
manager method on NetBox's proxy model for ContentType (core.models.ContentType
).extras
tocore
. Configuration history will be retained throughout the upgrade process.ipam
app to the newvpn
app. All object data will be retained, however please note that the relevant API endpoints have likewise moved to/api/vpn/
.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 represent peer-to-peer or hub-and-spoke topologies. Each termination is made to a virtual interface on a device or virtual machine. Additionally, users can define IKE and IPSec proposals and 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 events that occur in NetBox. 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. New event rules will be created for any existing webhooks automatically 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
size
field has been retained on the VirtualMachine model, and will be populated automatically with the aggregate size of all assigned virtual disks. (Users who opt to eschew the new model may continue using the VirtualMachinesize
attribute independently as in previous releases.)Object Protection Rules (#10244)
A new
PROTECTION_RULES
configuration parameter has been introduced. 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
ui_visible
field on the custom field model has been superseded by two new fields,ui_visible
andui_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 allows 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 from 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
color
field for circuit typeserror
field to the Job model to record any errors associated with its execution/render-config
REST API endpoint for virtual machinesCHANGELOG_SKIP_EMPTY_CHANGES
config parameterdescription
field for webhooksjob_start
andjob_end
signals to allow automated plugin actionsinterface_id
andconsoleport_id
)Translations
Bug Fixes
Other Changes
ActionsMixin
(backward compatibility has been retained)sentry-sdk
Python library is now required only if Sentry reporting is enabledextras
app intonetbox
(backward compatibility has been retained)FeatureQuery
with newwith_feature()
method on proxy ContentType manageripam
app to the newvpn
appextras
app tocore
extras
app tonetbox
extras.webhooks_worker.process_webhook()
toextras.webhooks.send_webhook()
(backward compatibility has been retained)clearcache
management commandENFORCE_GLOBAL_UNIQUE
now defaults to true)