netbox/docs/release-notes/version-2.7.md
Daniel Sheppard 8cbd2f5c2d Add list view for device components (#3719)
* Initial Work on #3564

* #3564 - Fixup issue with filter on interface

* #3564 - Fix PEP8 errors

* #3564 - Finalize fields, readjust order, reduce repetition

* #3564 - Update Changelog

* #3564 - Fix extra space

* #3564 - Change interface table ordering

* #3564 - Minor cleanup

* #3564 - Add Import Links

* Fix PEP8
2019-12-05 17:10:49 -05:00

3.6 KiB

v2.7.0 (FUTURE)

New Features

Enhanced Device Type Import (#451)

NetBox now supports the import of device types and related component templates using a YAML- or JSON-based definition. For example, the following will create a new device type with four network interfaces, two power ports, and a console port:

manufacturer: Acme
model: Packet Shooter 9000
slug: packet-shooter-9000
u_height: 1
interfaces:
  - name: ge-0/0/0
    type: 1000base-t
  - name: ge-0/0/1
    type: 1000base-t
  - name: ge-0/0/2
    type: 1000base-t
  - name: ge-0/0/3
    type: 1000base-t
power-ports:
  - name: PSU0
  - name: PSU1
console-ports:
  - name: Console

This new functionality replaces the existing CSV-based import form, which did not allow for component template import.

Bulk Import of Device Components (#822)

NetBox now supports the bulk import of device components such as console ports, power ports, and interfaces. Device components can be imported in CSV-format.

Changes

Topology Maps Removed (#2745)

The topology maps feature has been removed to help focus NetBox development efforts.

Redis Configuration (#3282)

v2.6.0 introduced caching and added the CACHE_DATABASE option to the existing REDIS database configuration section. This did not however, allow for using two different Redis connections for the seperate caching and webhooks features. This change separates the Redis connection configurations in the REDIS section into distinct webhooks and caching subsections. This requires modification of the REDIS section of the configuration.py file as follows:

Old Redis configuration:

REDIS = {
    'HOST': 'localhost',
    'PORT': 6379,
    'PASSWORD': '',
    'DATABASE': 0,
    'CACHE_DATABASE': 1,
    'DEFAULT_TIMEOUT': 300,
    'SSL': False,
}

New Redis configuration:

REDIS = {
    'webhooks': {
        'HOST': 'redis.example.com',
        'PORT': 1234,
        'PASSWORD': 'foobar',
        'DATABASE': 0,
        'DEFAULT_TIMEOUT': 300,
        'SSL': False,
    },
    'caching': {
        'HOST': 'localhost',
        'PORT': 6379,
        'PASSWORD': '',
        'DATABASE': 1,
        'DEFAULT_TIMEOUT': 300,
        'SSL': False,
    }
}

Note that CACHE_DATABASE has been removed and the connection settings have been duplicated for both webhooks and caching. This allows the user to make use of separate Redis instances and/or databases if desired. Full connection details are required in both sections, even if they are the same.

Enhancements

  • #1865 - Add console port and console server port types
  • #2902 - Replace supervisord with systemd
  • #3455 - Add tenant assignment to cluster
  • #3564 - Add interface, ports & bays list view
  • #3538 - Introduce a REST API endpoint for executing custom scripts

API Changes

  • Introduced /api/extras/scripts/ endpoint for retrieving and executing custom scripts
  • dcim.ConsolePort: Added field type
  • dcim.ConsolePortTemplate: Added field type
  • dcim.ConsoleServerPort: Added field type
  • dcim.ConsoleServerPortTemplate: Added field type
  • virtualization.Cluster: Added field tenant