mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
145 lines
9.6 KiB
Markdown
145 lines
9.6 KiB
Markdown
# NetBox v3.6
|
|
|
|
## v3.6-beta2 (FUTURE)
|
|
|
|
### Bug Fixes
|
|
|
|
* [#13351](https://github.com/netbox-community/netbox/issues/13351) - Fix missing text due to incorrectly applied translation tags
|
|
* [#13361](https://github.com/netbox-community/netbox/issues/13361) - Extra choices field on custom field choice set form should not be required
|
|
* [#13363](https://github.com/netbox-community/netbox/issues/13363) - Fix API endpoint for custom field choice selector in forms
|
|
* [#13376](https://github.com/netbox-community/netbox/issues/13376) - Restrict add/remove tag fields by model on bulk edit forms
|
|
* [#13410](https://github.com/netbox-community/netbox/issues/13410) - Fix rendering of custom choice fields with large number of choices
|
|
* [#13433](https://github.com/netbox-community/netbox/issues/13433) - User field on API token form should be required
|
|
* [#13434](https://github.com/netbox-community/netbox/issues/13434) - Randomly generate initial keys prior to the creation of new tokens
|
|
* [#13437](https://github.com/netbox-community/netbox/issues/13437) - Display bookmark button only for relevant objects
|
|
|
|
---
|
|
|
|
## v3.6-beta1 (2023-08-02)
|
|
|
|
### Breaking Changes
|
|
|
|
* PostgreSQL 11 is no longer supported (dropped in Django 4.2). NetBox v3.6 requires PostgreSQL 12 or later.
|
|
* The `device_role` field on the Device model has been renamed to `role`. The `device_role` field has been temporarily retained on the REST API serializer for devices for backward compatibility, but is read-only.
|
|
* The `choices` array field has been removed from the CustomField model. Any defined choices are automatically migrated to CustomFieldChoiceSets, accessible via the new `choice_set` field on the CustomField model.
|
|
* The `napalm_driver` and `napalm_args` fields (which were deprecated in v3.5) have been removed from the Platform model.
|
|
* Reports and scripts are now returned within a `results` list when fetched via the REST API, consistent with other models.
|
|
|
|
### New Features
|
|
|
|
#### Relocated Admin Views ([#12589](https://github.com/netbox-community/netbox/issues/12589), [#12590](https://github.com/netbox-community/netbox/issues/12590), [#12591](https://github.com/netbox-community/netbox/issues/12591), [#13044](https://github.com/netbox-community/netbox/issues/13044))
|
|
|
|
Management views for the following object types, previously available only under the backend admin interface, have been relocated to the primary user interface:
|
|
|
|
* Users
|
|
* Groups
|
|
* Object permissions
|
|
* API tokens
|
|
* Configuration revisions
|
|
|
|
This migration provides a more consistent user experience and unlocks advanced functionality not feasible using Django's built-in views. The admin UI is scheduled for complete removal in NetBox v4.0.
|
|
|
|
#### Configurable Default Permissions ([#13038](https://github.com/netbox-community/netbox/issues/13038))
|
|
|
|
Administrators now have the option of configuring default permissions for _all_ users globally, regardless of explicit permission or group assignments granted in the database. This is accomplished by defining the `DEFAULT_PERMISSIONS` configuration parameter. By default, all users are granted permission to manage their own bookmarks and API tokens.
|
|
|
|
#### User Bookmarks ([#8248](https://github.com/netbox-community/netbox/issues/8248))
|
|
|
|
Users can now bookmark their favorite objects in NetBox. Bookmarks are accessible under each user's personal bookmarks list, and can also be added as a dashboard widget.
|
|
|
|
#### Custom Field Choice Sets ([#12988](https://github.com/netbox-community/netbox/issues/12988))
|
|
|
|
Selection and multi-select custom fields now employ discrete, reusable choice sets containing the valid options for each field. A choice set may be shared by multiple custom fields. Additionally, each choice within a set can now specify both a raw value and a human-friendly label (see [#13241](https://github.com/netbox-community/netbox/issues/13241)). Pre-existing custom field choices are migrated to choice sets automatically during the upgrade process.
|
|
|
|
#### Pre-Defined Location Choices for Custom Fields ([#12194](https://github.com/netbox-community/netbox/issues/12194))
|
|
|
|
Users now have the option to employ one of several pre-defined sets of choices when creating a custom field. These include:
|
|
|
|
* IATA airport codes
|
|
* ISO 3166 country codes
|
|
* UN/LOCODE location identifiers
|
|
|
|
When defining a choice set, one of the above can be employed as the base set, with the option to define extra, custom choices as well.
|
|
|
|
#### Restrict Tag Usage by Object Type ([#11541](https://github.com/netbox-community/netbox/issues/11541))
|
|
|
|
Tags may now be restricted to use with designated object types. Tags that have no specific object types assigned may be used with any object that supports tag assignment.
|
|
|
|
### Enhancements
|
|
|
|
* [#6347](https://github.com/netbox-community/netbox/issues/6347) - Cache the number of assigned components for devices and virtual machines
|
|
* [#8137](https://github.com/netbox-community/netbox/issues/8137) - Add a field for designating the out-of-band (OOB) IP address for devices
|
|
* [#10197](https://github.com/netbox-community/netbox/issues/10197) - Cache the number of member devices on each virtual chassis
|
|
* [#11305](https://github.com/netbox-community/netbox/issues/11305) - Add GPS coordinate fields to the device model
|
|
* [#11519](https://github.com/netbox-community/netbox/issues/11519) - Add a SQL index for IP address host values to optimize queries
|
|
* [#11732](https://github.com/netbox-community/netbox/issues/11732) - Prevent inadvertent overwriting of object attributes by competing users
|
|
* [#11936](https://github.com/netbox-community/netbox/issues/11936) - Introduce support for tags and custom fields on webhooks
|
|
* [#12175](https://github.com/netbox-community/netbox/issues/12175) - Permit racks to start numbering at values greater than one
|
|
* [#12210](https://github.com/netbox-community/netbox/issues/12210) - Add tenancy assignment for power feeds
|
|
* [#12814](https://github.com/netbox-community/netbox/issues/12814) - Expose NetBox models within ConfigTemplate rendering context
|
|
* [#12882](https://github.com/netbox-community/netbox/issues/12882) - Add tag support for contact assignments
|
|
* [#13037](https://github.com/netbox-community/netbox/issues/13037) - Return reports & scripts within a `results` list when fetched via the REST API
|
|
* [#13170](https://github.com/netbox-community/netbox/issues/13170) - Add `rf_role` to InterfaceTemplate
|
|
* [#13269](https://github.com/netbox-community/netbox/issues/13269) - Cache the number of assigned component templates for device types
|
|
|
|
### Other Changes
|
|
|
|
* Work has begun on introducing translation and localization support in NetBox. This work is being performed in preparation for release 4.0.
|
|
* [#6391](https://github.com/netbox-community/netbox/issues/6391) - Rename the `device_role` field on Device to `role` for consistency with VirtualMachine
|
|
* [#9077](https://github.com/netbox-community/netbox/issues/9077) - Prevent the errant execution of dangerous instance methods in Django templates
|
|
* [#11766](https://github.com/netbox-community/netbox/issues/11766) - Remove obsolete custom `ChoiceField` and `MultipleChoiceField` classes
|
|
* [#12180](https://github.com/netbox-community/netbox/issues/12180) - All API endpoints for available objects (e.g. IP addresses) now inherit from a common parent view
|
|
* [#12237](https://github.com/netbox-community/netbox/issues/12237) - Upgrade Django to v4.2
|
|
* [#12794](https://github.com/netbox-community/netbox/issues/12794) - Avoid direct imports of Django's stock user model
|
|
* [#12320](https://github.com/netbox-community/netbox/issues/12320) - Remove obsolete fields `napalm_driver` and `napalm_args` from Platform
|
|
* [#12964](https://github.com/netbox-community/netbox/issues/12964) - Drop support for PostgreSQL 11
|
|
* [#13309](https://github.com/netbox-community/netbox/issues/13309) - User account-specific resources have been moved to a new `account` app for better organization
|
|
|
|
### REST API Changes
|
|
|
|
* Introduced the following endpoints:
|
|
* `/api/extras/bookmarks/`
|
|
* `/api/extras/custom-field-choice-sets/`
|
|
* Added the `/api/extras/custom-fields/{id}/choices/` endpoint for select and multi-select custom fields
|
|
* dcim.Device
|
|
* Renamed `device_role` to `device`. Added a read-only `device_role` field for limited backward compatibility.
|
|
* Added the `latitude` and `longitude` fields (for GPS coordinates)
|
|
* Added the `oob_ip` field for out-of-band IP address assignment
|
|
* dcim.DeviceType
|
|
* Added read-only counter fields for assigned component templates:
|
|
* `console_port_template_count`
|
|
* `console_server_port_template_count`
|
|
* `power_port_template_count`
|
|
* `power_outlet_template_count`
|
|
* `interface_template_count`
|
|
* `front_port_template_count`
|
|
* `rear_port_template_count`
|
|
* `device_bay_template_count`
|
|
* `module_bay_template_count`
|
|
* `inventory_item_template_count`
|
|
* dcim.InterfaceTemplate
|
|
* Added the `rf_role` field
|
|
* dcim.Platform
|
|
* Removed the `napalm_driver` and `napalm_args` fields
|
|
* dcim.PowerFeed
|
|
* Added the `tenant` field
|
|
* dcim.Rack
|
|
* Added the `starting_unit` field
|
|
* dcim.VirtualChassis
|
|
* Added the read-only `member_count` field
|
|
* extras.CustomField
|
|
* Removed the `choices` array field
|
|
* Added the `choice_set` foreign key field (to ChoiceSet)
|
|
* extras.Report
|
|
* Reports are now returned within a `results` list
|
|
* extras.Script
|
|
* Scripts are now returned within a `results` list
|
|
* extras.Tag
|
|
* Added the `object_types` field for optional restriction to specific object types
|
|
* extras.Webhook
|
|
* Added `custom_fields` and `tags` support
|
|
* tenancy.ContactAssignment
|
|
* Added `tags` support
|
|
* virtualization.VirtualMachine
|
|
* Added the `oob_ip` field for out-of-band IP address assignment
|