Skip to content

Nautobot v2.2

This document describes all new features and changes in Nautobot 2.2.

Release Overview

Added

Contact and Team Models (#230)

Contact and Team are models that represent an individual and a group of individuals who can be linked to an object. Contacts and teams store the necessary information (name, phone number, email, and address) to uniquely identify and contact them. They are added to track ownerships of organizational entities and to manage resources more efficiently in Nautobot. Check out the documentation for Contact and Team. There is also a user guide available on how to utilize these models.

A new management command has been introduced to assist with migrating the Location fields contact_name, contact_phone and contact_email to the new Contact and Team models. This command can be invoked with nautobot-server migrate_location_contacts and will present a series of prompts to guide you through migrating Locations that have data in the contact_name, contact_phone, or contact_email fields which are not already associated to a Contact or Team. This command will give you the option to create new Contacts or Teams or, if a similar Contact or Team already exists, to link the Location to the existing Contact or Team. Note that when assigning a Location to an existing Contact or Team that has a blank phone or email field, the value from the Location will be copied to the Contact/Team. After a Location has been associated to a Contact or Team, the contact_name, contact_phone, and contact_email fields will be cleared from the Location.

Controller Model (#3111)

Controller models have been added to the dcim app. A Controller in Nautobot is an abstraction meant to represent network or SDN (Software-Defined Networking) controllers. These may include, but are not limited to, wireless controllers, cloud-based network management systems, and other forms of central network control mechanisms.

For more details, refer to the user guide for a Controller model, a ControllerManagedDeviceGroup model, or developer documentation for Controllers.

DeviceFamily Model (#3559)

A Device Family represents a group of related Device Types. A Device Type can be optionally assigned to a Device Family. Each Device Family must have a unique name and may have a description assigned to it.

Jobs Tile View (#5129)

Job list is now available in two display variants: list and tiles. List is a standard table view with no major changes introduced. Tiles is a new type of view displaying jobs in a two-dimensional grid.

Prefix and VLAN Many Locations (#4334, #4412)

The Prefix and VLAN models have replaced their single location foreign-key field with a many-to-many locations field, allowing multiple Locations to be attached to a single Prefix or VLAN. To ensure backwards compatibility with pre-2.2 code, these models now have a location property which can be retrieved or set for the case of a single associated Location, but will raise a MultipleObjectsReturned exception if the Prefix or VLAN in question has more than one associated Location. REST API versions 2.0 and 2.1 similarly still have a location field, while REST API version 2.2 and later replace this with locations.

Software Image File and Software Version models (#1)

New models have been added for Software Image Files and Software Versions. These models are used to track the software versions of Devices, Inventory Items and Virtual Machines and their associated image files. These models have been ported from the Device Lifecycle Management App and a future update to that app will migrate all existing data from the nautobot_device_lifecycle_mgmt.SoftwareImageLCM and nautobot_device_lifecycle_mgmt.SoftwareLCM models to the dcim.SoftwareImageFile and dcim.SoftwareVersion models added here.

Software Versions must be associated to a Platform. Software Image Files must be associated to one Software Version and may be associated to one or more Device Types. Devices, Inventory Items and Virtual Machines may be associated to one Software Version to track their current version. See the documentation for Software Image File and Software Version. There is also a user guide with instructions on how to create these models.

Syntax Highlighting (#5098)

Language syntax highlighting for GraphQL, JSON, XML and YAML is now supported in the UI via JavaScript. To enable the feature, a code snippet has to be wrapped in the following HTML structure:

<pre><code class="language-{graphql,json,xml,yaml}">...</code></pre>

render_json and render_yaml template filters default to this new behavior with an optional opt-out syntax_highlight=False arg.

Changed

Data Imports as a System Job (#5064)

The CSV import functionality for all models has been changed from a synchronous operation to an asynchronous background task (system Job). As a result, imports of large CSV files will no longer fail due to browser timeout.

Tip

Users now must have the run action permission for extras > job (specifically the nautobot.core.jobs.ImportObjects Job) in order to import objects, in addition to the normal add permissions for the object type being imported.

Plugin to App Renames(#5341)

Installed Plugins view has been renamed to Installed Apps. Plugin terminologies in Installed Plugins (now Installed Apps) view and dependent views have been changed to App throughout. Plugin references in documentation (excluding old release-notes) have been replaced by App. Plugins navigation menu has been renamed to Apps.

Standardization of max_length on all Charfields (#2906)

Model CharFields' max_length attributes have been standardized globally to have at least 255 characters except where a shorter max_length is explicitly justified.

v2.2.2 (2024-04-18)

Security

  • #5579 - Updated sqlparse to 0.5.0 to fix GHSA-2m57-hf25-phgg. This is not a direct dependency so it will not auto-update when upgrading Nautobot. Please be sure to update your local environment.

Added

  • #2459 - Added nautobot.extras.utils.bulk_delete_with_bulk_change_logging helper function for improving performance on bulk delete.
  • #2459 - Added nautobot.extras.context_managers.deferred_change_logging_for_bulk_operation context manager for improving performance on bulk update.

Changed

  • #2459 - Improved performance of bulk-edit and bulk-delete UI operations by refactoring change logging logic.
  • #5568 - Added hyperlink to the total device count number under device family.
  • #5589 - Fixed an invalid Javascript operator in the LLDP neighbor view.

Fixed

  • #5580 - Fixed bugs when assigning a VLAN to an Interface related to the recently introduced many-to-many relationship between VLANs and Locations.
  • #5592 - Fixed plugins not loading when using Gunicorn.

Documentation

  • #5583 - Re-added release note content for v1.6.16 through v1.6.18.

Housekeeping

  • #5590 - Fixed upstream testing workflows showing successful when one of the steps fail.

v2.2.1 (2024-04-15)

Security

  • #5521 - Updated Pillow dependency to ~10.3.0 to address CVE-2024-28219.
  • #5543 - Updated jquery-ui to version 1.13.2 due to CVE-2022-31160.
  • #5561 - Updated idna to 3.7 due to CVE-2024-3651. This is not a direct dependency so will not auto-update when upgrading. Please be sure to upgrade your local environment.

Added

  • #1631 - Added change logging for custom field background tasks.
  • #5009 - Added the option to filter objects with select/multi-select custom fields based on the UUID of the defined custom field choice(s), for example /api/dcim/locations/?cf_multiselect=1ea9237c-3ba7-4985-ba7e-6fd9e9bff813 as an alternative to /api/dcim/locations/?cf_multiselect=some-choice-value.
  • #5493 - Added a configuration setting METRICS_DISABLED_APPS to disable app metrics for specific apps.
  • #5540 - Added total devices count to device family detail page.

Changed

  • #5274 - Added a setting that changes all rack unit numbers to display a minimum of two digits in rack elevations.

Fixed

  • #5469 - Fixed contacts and teams not being included in the global search.
  • #5489 - Fixed REST API for Contact and Team incorrectly marking the phone and email fields as mandatory.
  • #5502 - Fixed off-by-one error in generic filter testing helper BaseFilterTestCase.get_filterset_test_values.
  • #5511 - Fixed contact tab disappearing when accessing dynamic groups tab.
  • #5515 - Fixed javascript exception thrown in the Device LLDP neighbors view for neighbors without configured devices/interfaces.
  • #5527 - Fixed incorrect "members" links in Virtual Chassis list view.
  • #5531 - Re-added nautobot.setup() function mistakenly removed in 2.2.0.

Dependencies

  • #5495 - Changed jsonschema version constraint from >=4.7.0,<4.19.0 to ^4.7.0.
  • #5517 - Updated djangorestframework to ~3.15.1.
  • #5521 - Updated most dependencies to the latest versions available as of 2024-04-01.
  • #5543 - Updated jquery to version 3.7.1.

Documentation

  • #5189 - Added "Model Development Checklist" to the core developer documentation.
  • #5189 - Merged "Extending Models" documentation into the "Model Development Checklist" documentation.
  • #5526 - Fixed doc reference to job cprofile file location.

Housekeeping

  • #5531 - Removed nautobot-server pylint management command from the example_app, as pylint can be invoked directly with an appropriate --init-hook instead.
  • #5547 - Fixed TransactionTestCase inheritance order so that test.client works in test cases using this class.

v2.2.0 (2024-03-29)

Warning

Upgrading from beta releases to final releases is never recommended for Nautobot; in the case of 2.2.0b1 to 2.2.0 several data models and database migrations have been modified (see #5454) between the two releases, and so upgrading in place from 2.2.0b1 to 2.2.0 will not work.

Added

  • #4811 - Added a new generic test case (test_table_with_indentation_is_removed_on_filter_or_sort) to ListObjectsViewTestCase to test that the tree hierarchy is correctly removed on TreeModel list views when sorting or filtering is applied. This test will also run in these subclasses of the ListObjectsViewTestCase: PrimaryObjectViewTestCase, OrganizationalObjectViewTestCase, and DeviceComponentViewTestCase.
  • #5034 - Added a management command (nautobot-server migrate_location_contacts) to help migrate the Location contact_name, contact_email and contact_phone fields to Contact and Teams models.

Changed

  • #5452 - Changed the behavior of Prefix table: now they are sortable, and after sorting is applied, all hierarchy indentations are removed.
  • #5454 - Changed one-to-many links from Controller to PROTECT against deleting.
  • #5454 - Renamed ControllerDeviceGroup to ControllerManagedDeviceGroup.
  • #5454 - Renamed Controller.deployed_controller_device to Controller.controller_device.
  • #5454 - Renamed Controller.deployed_controller_group to Controller.controller_device_redundancy_group.
  • #5454 - Renamed Device.controller_device_group to Device.controller_managed_device_group.
  • #5454 - Removed ConfigContext from ControllerManagedDeviceGroup.
  • #5454 - Removed ConfigContext from Controller.
  • #5475 - Changed the behavior of Prefix table and other Tree Model tables: now after filtering is applied, all hierarchy indentations are removed.
  • #5487 - Moved some nav menu items around to make better logical sense and to allow quicker access to more commonly accessed features.

Fixed

  • #5415 - Fixed Team(s) field not pre-populating when editing a Contact.
  • #5431 - Fixed Roles API response containing duplicate entries when filtering on more than one content_types value.
  • #5431 - Fixed Providers API response containing duplicate entries when filtering on more than one location value.
  • #5440 - Fixed Cannot resolve keyword 'task_id' into field error when calling nautobot-server celery result <task_id>.

Dependencies

  • #4583 - Updated pinned version of social-auth-core to remove dependency on python-jose & it's dependency on ecdsa.

Housekeeping

  • #5435 - Added --pattern argument to invoke unittest.
  • #5435 - Added --parallel-workers argument to invoke unittest.

v2.2.0-beta.1 (2024-03-19)

Added

  • #1 - Added new models for software versions and software image files.
  • #1 - Added a many-to-many relationship from Device to SoftwareImageFile.
  • #1 - Added a many-to-many relationship from DeviceType to SoftwareImageFile.
  • #1 - Added a many-to-many relationship from InventoryItem to SoftwareImageFile.
  • #1 - Added a many-to-many relationship from VirtualMachine to SoftwareImageFile.
  • #1 - Added a foreign key relationship from Device to SoftwareVersion.
  • #1 - Added a foreign key relationship from InventoryItem to SoftwareVersion.
  • #1 - Added a foreign key relationship from VirtualMachine to SoftwareVersion.
  • #230 - Added Contact and Team Models.
  • #1150 - Added environment variable support for most admin-configurable settings (ALLOW_REQUEST_PROFILING, BANNER_TOP, etc.)
  • #3111 - Initial work on the controller model.
  • #3559 - Added HardwareFamily model class. (Renamed before release to DeviceFamily.)
  • #3559 - Added device_family field to Device Type model class.
  • #4269 - Added REST API endpoint for VRFDeviceAssignment model.
  • #4270 - Added REST API endpoint for VRFPrefixAssignment model.
  • #4811 - Enabled sorting on the API endpoints for tree node models.
  • #5012 - Added database indexes to the ObjectChange model to improve performance when filtering by user_name, changed_object, or related_object, and also by changed_object in combination with user or user_name.
  • #5064 - Added job_import_button template-tag and marked import_button button template-tag as deprecated.
  • #5064 - Added nautobot.apps.utils.get_view_for_model utility function.
  • #5064 - Added can_add, can_change, can_delete, can_view, and has_serializer filters to the /api/extras/content-types/ REST API.
  • #5067 - Added q (SearchFilter) filter to all filtersets where it was missing.
  • #5067 - Added two generic test cases for q filter: test_q_filter_exists and test_q_filter_valid.
  • #5097 - Added a JSON Schema file for Nautobot settings (nautobot/core/settings.yaml).
  • #5097 - Added REST API endpoint to show the JSON Schema for authenticated users.
  • #5098 - Added client-side GraphQL, JSON, XML, and YAML syntax highlighting with the highlight.js library.
  • #5101 - Added a utility to help when writing migrations that replace database models.
  • #5107 - Added hyperlinked_email and hyperlinked_phone_number template tags/filters.
  • #5127 - Added bulk-edit and bulk-delete capabilities for Jobs.
  • #5129 - Implemented jobs tile view.
  • #5188 - Added table of related Device Families to the DeviceType detail view.
  • #5278 - Added permission constraint for User Token.
  • #5341 - Added /apps/ and /api/apps/ URL groupings, initially containing only the installed-apps/ sub-items.
  • #5341 - Added nautobot-apps key to the /api/status/ REST API endpoint.
  • #5342 - Added MigrationsBackend to health-check, which will fail if any unapplied database migrations are present.
  • #5347 - Added an option to the Job-based CSV import to make atomic transactions optional.
  • #5349 - Added REST API for vlan-to-location and prefix-to-location M2M.

Changed

  • #2906 - Increased max_length on all CharFields to at least 255 characters except where a shorter max_length is explicitly justified.
  • #4334 - Changed Prefix.location to Prefix.locations allowing multiple Locations to be associated with a given Prefix.
  • #4334 - Changed VLANGroup default ordering to be sorted by name alone since it is a unique field.
  • #4412 - Changed VLAN.location to VLAN.locations allowing multiple Locations to be associated with a given VLAN.
  • #4811 - Changed the behavior of tree model tables: now they are sortable, and after sorting is applied, all hierarchy indentations are removed.
  • #5064 - Changed CSV import functionality to run as a system Job, avoiding HTTP timeouts when importing large data sets.
  • #5064 - Updated JobResult main tab to render any return value from the Job as syntax-highlighted JSON.
  • #5126 - Rearranged Job List table row contents.
  • #5341 - Renamed Plugins navigation menu to Apps. Apps that add to this menu are encouraged to update their navigation.py to use the new name.
  • #5341 - Renamed Installed Plugins view to Installed Apps.
  • #5341 - Changed permissions on the Installed Apps views to be visible to all authenticated users, not just staff/superuser accounts.
  • #5342 - Changed default Docker HEALTHCHECK to use nautobot-server health_check CLI command.
  • #5405 - Changed DeviceType list view "Import" button to include a dropdown to select between JSON/YAML or CSV import formats.
  • #5405 - Changed DeviceType list view "Export" button to default to YAML format.
  • #5412 - Changed DeviceType YAML/JSON import to now map unrecognized port template type values to "other" instead of failing the import.
  • #5414 - Changed ImportObjects.roll_back_if_error form field help text and label.

Deprecated

  • #5064 - Deprecated the import_button button template-tag.
  • #5116 - Deprecated the nautobot.apps.exceptions.ConfigurationError class as it is no longer used in Nautobot core and is trivially reimplementable by any App if desired.
  • #5341 - Deprecated the plugins key under the /api/status/ REST API endpoint. Refer to nautobot-apps instead.

Removed

  • #5064 - Removed the requirement for ViewTestCases subclasses to define csv_data for testing bulk-import views, as this functionality is now covered by a generic system Job.
  • #5116 - Removed logan-derived application startup logic, simplifying the Nautobot startup code flow.

Fixed

  • #4334 - Fixed ordering of VLANs in the UI list view.
  • #5064 - Fixed an exception in Job.after_return() if a Job with an optional FileVar was executed without supplying a value for that variable.
  • #5116 - Fixed inability to specify a --config PATH value with the nautobot-server runserver command.
  • #5186 - Fixed Prefix.ip_version and IPAddress.ip_version fields to be non-nullable.
  • #5220 - Fixed contacts field in "Add a new team" form not populating.
  • #5241 - Fixed rendering of NavMenuItems that do not define any specific required permissions.
  • #5241 - Fixed incorrect construction of NavMenuTab and NavMenuGroup permissions.
  • #5241 - Fixed incorrect permissions required for Roles navigation menu item.
  • #5298 - Fixed a ValidationError that was being thrown when a user logged out.
  • #5298 - Fixed a case where viewing a completed JobResult that was missing a date_done value would cause the JobResult view to repeatedly refresh.

Dependencies

  • #5248 - Broadened Markdown dependency to permit versions up to 3.5.x.

Documentation

  • #5179 - Updated all documentation referencing the example_plugin to refer to the (renamed) example_app.
  • #5179 - Replaced some "plugin" references in the documentation with "App" or "Nautobot App" as appropriate.
  • #5248 - Removed source code excerpts from the "App Developer Guide > Code Reference" section of the documentation.
  • #5341 - Replaced references to "plugins" in the documentation with "Apps".

Housekeeping

  • #5099 - Added mkdocs-macros-plugin as a development/documentation-rendering dependency.
  • #5099 - Refactored documentation in optional-settings and required-settings to be generated automatically from settings.yaml schema.
  • #5099 - Replaced nautobot/core/settings.json with nautobot/core/settings.yaml for improved readability and maintainability.
  • #5105 - Added Bulk Edit functionality for ContactAssociation.
  • #5105 - Added Bulk Edit buttons for associated contact tables in the contacts tabs of object detail views.
  • #5145 - Added data migration to populate default statuses and default roles for the ContactAssociation model.
  • #5179 - Renamed example_plugin to example_app.
  • #5179 - Renamed example_plugin_with_view_override to example_app_with_view_override.
  • #5179 - Replaced all "plugin" terminology within the examples directory with "App", except in cases where the terminology is embedded in core code (settings.PLUGINS, plugins: and plugins-api named URLs, etc.)
  • #5179 - Replaced some "plugin" terminology in docstrings, comments, and test code with "app" as appropriate.
  • #5187 - Removed "Add Contact" button from the standard buttons in the detail views.
  • #5187 - Renamed "Assign Contact/Team" UI buttons text from "Create", "Create and Add Another" to "Assign" and "Assign and Add Another".
  • #5187 - Split out Contact/Team icons into a separate column and renamed the columns to "Type" and "Name" on AssociatedContactsTable.
  • #5207 - Made role attribute required on ContactAssociation Model.
  • #5213 - Made the default action when assigning a contact/team to an object to be the assignment of an existing contact/team.
  • #5214 - Fixed the bug causing Contact Tab disappear when the user navigates to the Notes and Changelog Tabs.
  • #5221 - Fixed the return URL from adding/assigning a contact/team from ObjectDetailView to redirect to the contacts tab instead of the main tab.
  • #5248 - Updated development dependencies including coverage, django-debug-toolbar, factory-boy, mkdocs-material, mkdocstrings, mkdocstrings-python, pylint, rich, ruff, selenium, splinter, towncrier, watchdog, and yamllint to their latest available versions.
  • #5272 - Fixed incorrectly set return urls on the edit and delete buttons of job tile view.
  • #5352 - Renamed HardwareFamily to DeviceFamily.