2020-08-21 11:06:36 -04:00
# NetBox v2.10
## v2.10-beta1 (FUTURE)
2020-08-21 11:57:46 -04:00
**NOTE:** This release completely removes support for embedded graphs.
2020-09-17 14:22:14 -04:00
### New Features
2020-09-24 14:18:08 -04:00
#### Route Targets ([#259](https://github.com/netbox-community/netbox/issues/259))
This release introduces support for model L3VPN route targets, which can be used to control the redistribution of routing information among VRFs. Each VRF may be assigned one or more route targets in the import or export direction (or both). Like VRFs, route targets may be assigned to tenants and may have tags applied to them.
2020-09-22 10:36:16 -04:00
#### REST API Bulk Deletion ([#3436](https://github.com/netbox-community/netbox/issues/3436))
The REST API now supports the bulk deletion of objects of the same type in a single request. Send a `DELETE` HTTP request to the list to the model's list endpoint (e.g. `/api/dcim/sites/` ) with a list of JSON objects specifying the numeric ID of each object to be deleted. For example, to delete sites with IDs 10, 11, and 12, issue the following request:
```no-highlight
curl -s -X DELETE \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
http://netbox/api/dcim/sites/ \
--data '[{"id": 10}, {"id": 11}, {"id": 12}]'
```
2020-09-22 14:49:49 -04:00
#### REST API Bulk Update ([#4882](https://github.com/netbox-community/netbox/issues/4882))
Similar to bulk deletion, the REST API also now supports bulk updates. Send a `PUT` or `PATCH` HTTP request to the list to the model's list endpoint (e.g. `/api/dcim/sites/` ) with a list of JSON objects specifying the numeric ID of each object and the attribute(s) to be updated. For example, to set a description for sites with IDs 10 and 11, issue the following request:
```no-highlight
curl -s -X PATCH \
-H "Authorization: Token $TOKEN" \
-H "Content-Type: application/json" \
http://netbox/api/dcim/sites/ \
--data '[{"id": 10, "description": "Foo"}, {"id": 11, "description": "Bar"}]'
```
2020-10-05 11:07:03 -04:00
#### Improved Cable Trace Performance ([#4900](https://github.com/netbox-community/netbox/issues/4900))
All end-to-end cable paths are now cached using the new CablePath model. This allows NetBox to now immediately return the complete path originating from any endpoint directly from the database, rather than having to trace each cable recursively. It also resolves some systemic validation issues with the original implementation.
**Note:** As part of this change, cable traces will no longer traverse circuits: A circuit termination will be considered the origin or destination of an end-to-end path.
2020-09-22 10:36:16 -04:00
### Enhancements
2020-10-15 15:06:01 -04:00
* [#609 ](https://github.com/netbox-community/netbox/issues/609 ) - Add min/max value and regex validation for custom fields
2020-09-21 11:12:17 -04:00
* [#1503 ](https://github.com/netbox-community/netbox/issues/1503 ) - Allow assigment of secrets to virtual machines
2020-09-18 11:05:31 -04:00
* [#1692 ](https://github.com/netbox-community/netbox/issues/1692 ) - Allow assigment of inventory items to parent items in web UI
2020-09-21 14:49:39 -04:00
* [#2179 ](https://github.com/netbox-community/netbox/issues/2179 ) - Support the assignment of multiple port numbers for services
2020-09-22 16:06:38 -04:00
* [#4897 ](https://github.com/netbox-community/netbox/issues/4897 ) - Allow filtering by content type identified as `<app>.<model>` string
2020-10-13 16:57:45 -04:00
* [#4918 ](https://github.com/netbox-community/netbox/issues/4918 ) - Add a REST API endpoint (`/api/status/` ) which returns NetBox's current operational status
2020-09-18 11:35:15 -04:00
* [#4956 ](https://github.com/netbox-community/netbox/issues/4956 ) - Include inventory items on primary device view
2020-10-16 10:04:33 -04:00
* [#4967 ](https://github.com/netbox-community/netbox/issues/4967 ) - Adds tenancy to Aggregate model
2020-09-18 13:03:38 -04:00
* [#5003 ](https://github.com/netbox-community/netbox/issues/5003 ) - CSV import now accepts slug values for choice fields
2020-09-17 14:22:14 -04:00
* [#5146 ](https://github.com/netbox-community/netbox/issues/5146 ) - Add custom fields support for cables, power panels, rack reservations, and virtual chassis
2020-10-09 15:08:29 -04:00
* [#5190 ](https://github.com/netbox-community/netbox/issues/5190 ) - Add a REST API endpoint for content types
2020-09-17 14:22:14 -04:00
2020-08-21 11:06:36 -04:00
### Other Changes
2020-09-18 10:18:03 -04:00
* [#1846 ](https://github.com/netbox-community/netbox/issues/1846 ) - Enable MPTT for InventoryItem hierarchy
2020-08-21 11:57:46 -04:00
* [#4349 ](https://github.com/netbox-community/netbox/issues/4349 ) - Dropped support for embedded graphs
2020-08-21 11:16:30 -04:00
* [#4360 ](https://github.com/netbox-community/netbox/issues/4360 ) - Remove support for the Django template language from export templates
2020-09-17 13:25:18 -04:00
* [#4878 ](https://github.com/netbox-community/netbox/issues/4878 ) - Custom field data is now stored directly on each object
2020-08-21 11:06:36 -04:00
* [#4941 ](https://github.com/netbox-community/netbox/issues/4941 ) - `commit` argument is now required argument in a custom script's `run()` method
2020-10-15 15:37:34 -04:00
* [#5011 ](https://github.com/netbox-community/netbox/issues/5011 ) - Standardized name field lengths across all models
2020-10-20 13:16:35 -04:00
* [#5139 ](https://github.com/netbox-community/netbox/issues/5139 ) - Omit utilization statistics from RIR list
2020-10-09 14:06:24 -04:00
* [#5225 ](https://github.com/netbox-community/netbox/issues/5225 ) - Circuit termination port speed is now an optional field
2020-08-21 11:16:30 -04:00
### REST API Changes
2020-10-06 14:30:46 -04:00
* Added support for `PUT` , `PATCH` , and `DELETE` operations on list endpoints (bulk update and delete)
2020-10-13 16:57:45 -04:00
* Added the `/extras/content-types/` endpoint for Django ContentTypes
* Added the `/status/` endpoint to convey NetBox's current status
2020-10-06 14:30:46 -04:00
* circuits.CircuitTermination:
2020-10-08 13:55:29 -04:00
* Added the `/trace/` endpoint
2020-10-06 14:30:46 -04:00
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-09 14:06:24 -04:00
* `port_speed` may now be null
2020-09-18 11:51:38 -04:00
* dcim.Cable: Added `custom_fields`
2020-10-06 14:30:46 -04:00
* dcim.ConsolePort:
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-08 11:26:02 -04:00
* Removed `connection_status` from nested serializer
2020-10-06 14:30:46 -04:00
* dcim.ConsoleServerPort:
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-08 11:26:02 -04:00
* Removed `connection_status` from nested serializer
2020-10-06 16:58:11 -04:00
* dcim.FrontPort:
2020-10-08 11:26:02 -04:00
* Replaced the `/trace/` endpoint with `/paths/` , which returns a list of cable paths
2020-10-06 16:58:11 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-06 14:30:46 -04:00
* dcim.Interface:
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-08 11:26:02 -04:00
* Removed `connection_status` from nested serializer
2020-09-18 11:51:38 -04:00
* dcim.InventoryItem: The `_depth` field has been added to reflect MPTT positioning
2020-10-08 13:55:29 -04:00
* dcim.PowerFeed:
* Added the `/trace/` endpoint
* Added fields `connected_endpoint` , `connected_endpoint_type` , `connected_endpoint_reachable` , `cable_peer` , and `cable_peer_type`
2020-10-06 14:30:46 -04:00
* dcim.PowerOutlet:
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-08 11:26:02 -04:00
* Removed `connection_status` from nested serializer
2020-09-18 11:51:38 -04:00
* dcim.PowerPanel: Added `custom_fields`
2020-10-06 14:30:46 -04:00
* dcim.PowerPort
* Replaced `connection_status` with `connected_endpoint_reachable` (boolean)
2020-10-06 16:16:08 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-10-08 11:26:02 -04:00
* Removed `connection_status` from nested serializer
2020-09-18 11:51:38 -04:00
* dcim.RackReservation: Added `custom_fields`
2020-10-06 16:58:11 -04:00
* dcim.RearPort:
2020-10-08 11:26:02 -04:00
* Replaced the `/trace/` endpoint with `/paths/` , which returns a list of cable paths
2020-10-06 16:58:11 -04:00
* Added `cable_peer` and `cable_peer_type`
2020-09-18 11:51:38 -04:00
* dcim.VirtualChassis: Added `custom_fields`
2020-08-21 11:16:30 -04:00
* extras.ExportTemplate: The `template_language` field has been removed
2020-09-18 11:51:38 -04:00
* extras.Graph: This API endpoint has been removed (see #4349 )
2020-09-22 16:06:38 -04:00
* extras.ImageAttachment: Filtering by `content_type` now takes a string in the form `<app>.<model>`
* extras.ObjectChange: Filtering by `changed_object_type` now takes a string in the form `<app>.<model>`
2020-10-16 10:04:33 -04:00
* ipam.Aggregate: Added `tenant` field
2020-09-24 14:45:14 -04:00
* ipam.RouteTarget: New endpoint
2020-09-21 14:49:39 -04:00
* ipam.Service: Renamed `port` to `ports` ; now holds a list of one or more port numbers
2020-09-24 14:45:14 -04:00
* ipam.VRF: Added `import_targets` and `export_targets` fields
2020-09-21 11:12:17 -04:00
* secrets.Secret: Removed `device` field; replaced with `assigned_object` generic foreign key. This may represent either a device or a virtual machine. Assign an object by setting `assigned_object_type` and `assigned_object_id` .