Nautobot v2.0¶
This document describes all new features and changes in Nautobot 2.0.
Note
Please thoroughly review the release overview below to see what changes may affect you during upgrade. Our "Upgrading from Nautobot v1.X" guide provides a lot of information around pre- and post-migration helpers we have written that should assist you in a successful 2.0 upgrade. If you have any questions, please reach out to us on the #nautobot channel on Network to Code's Slack community or GitHub Discussions.
Release Overview¶
Added¶
Alpha UI 2.0 (#3142)¶
Nautobot 2.0 includes an "alpha" version of a new user interface (UI) for Nautobot, based on the React web framework.
Changed in version 2.0.3
This UI is disabled by default but can be enabled as an option by setting the ENABLE_ALPHA_UI setting to True in your nautobot_config.py and then running nautobot-server build_ui.
Users can switch between the existing UI and new UI for views supported in the new UI via a "View in New UI" link in the page footer of the existing UI and a "Return to Legacy UI" link in the left sidebar of the new UI.
Tip
The new UI also includes a "Submit Feedback" link that can be used to easily submit feedback regarding the new UI to the Nautobot maintainers.
As of Nautobot release 2.0.0, the new UI supports read-only access to Locations, Device Types, Devices, Prefixes, and IP Addresses; these views will be enhanced and refined, and support for additional models and workflows will be added, throughout the Nautobot 2.x release lifecycle.
Info
As of Nautobot release 2.0.0, the new UI, as an alpha feature, does not yet support Nautobot Apps (plugins), but this capability will be added and supported in a future release.
Assign an IP Address to Multiple Interfaces (#2403)¶
Introduced the ability to assign one IPAddress to multiple Interfaces/Devices and VMInterfaces/VirtualMachines by creating a many to many relationship between IPAddress and Interface/VMInterface models represented as a through table model IPAddressToInterface. This feature allows you to model a network environment where you have anycast IPAddresses are shared extensively among a large number of Devices/VirtualMachines.
As a result of this feature and associated changes, you can no longer assign Interfaces/VMInterfaces during bulk creation of IPAddresses, but a separate bulk-create endpoint has been introduced to allow the bulk import of IPAddressToInterface assignments.
Generic Role Model (#1063)¶
DeviceRole, RackRole, IPAM Role, and IPAddressRoleChoices have all been merged into a single generic Role model. A Rolecan now be created and associated to one or more of the content-types that support reference to a role. These model content-types include dcim.device, dcim.rack, virtualization.virtualmachine, ipam.ipaddress, ipam.prefix, and ipam.vlan.
IPAM Namespaces (#3337)¶
The new Namespace model expands on the functionality previously provided by VRF.enforce_unique and the ENFORCE_GLOBAL_UNIQUE settings flag, both of which have now been removed. Within a namespace, all VRFs, prefixes, and IP addresses must be unique and non-duplicated. For more details please refer to the documentation.
Natural Key Support Across Nautobot Models (#2900)¶
Nautobot's BaseModel base class and related classes now implement automatic support for Django natural keys for lookup and referencing. For example:
>>> DeviceType.objects.first().natural_key()
['MegaCorp', 'Model 9000']
>>> DeviceType.objects.get_by_natural_key("MegaCorp", "Model 9000")
<DeviceType: Model 9000>
Developers can refer to the documentation on natural keys for details on how to support and use this feature.
Two new configuration settings, DEVICE_NAME_AS_NATURAL_KEY and LOCATION_NAME_AS_NATURAL_KEY, have been added to allow an administrator to customize the natural-key behavior of these two widely-used models.
REST API Query Depth Parameter (#3042)¶
Added the ?depth query parameter in Nautobot v2.X to replace the ?brief parameter in the REST API. It enables nested serialization functionality and offers a more dynamic and comprehensive browsable API. It allows users greater control of the API response data and it is available for both retrieving a single object and a list of objects. This parameter is a positive integer value that can range from 0 to 10. To learn more more, check out the documentation on the ?depth query parameter.
Site Fields Added to Location (#2954)¶
Added Site Model Fields to Location. Location Model now has asn, comments, contact_email, contact_name, contact_phone, facility, latitude, longitude, physical_address, shipping_address and time_zone fields.
Changed¶
Aggregate Model Migrated to Prefix (#3302)¶
The ipam.Aggregate model has been removed and all existing aggregates will be migrated to ipam.Prefix with type set to "Container". The Aggregate.date_added field will be migrated to Prefix.date_allocated and changed from a Date field to a DateTime field with the time set to 00:00. Aggregate.tenant, Aggregate.rir and Aggregate.description will be migrated over to the same fields on Prefix.
See the upgrade guide for more details on the data migration.
Changed created Field to DateTimeField for ChangeLoggedModel (#2076)¶
The created field of all models that inherit from ChangedLoggedModel, which includes OrganizationalModel and PrimaryModel and therefore most objects in the core data model, has been changed from a DateField to a DateTimeField for added granularity. Preexisting records will show as created at midnight UTC on their original creation date.
All such objects may now be filtered by date or time or a combination of both. All other date-based behavior such as filtering works as it did before.
Collapsed nautobot.utilities into nautobot.core (#2721)¶
nautobot.utilities no longer exists as a separate Python module or Django app. Its functionality has been collapsed into the nautobot.core app. See details at Python Code Location Changes.
Collapsed Region and Site Models into Location (#2517)¶
Initial Data Migration¶
The Site and Region models have been removed in v2.0 and have been replaced with Location of specific LocationType. As a result, the existing Site and Region data will be migrated to corresponding LocationType and Location objects. Here is what to expect:
- If you do not have any
SiteandRegioninstances in your existing database, running this data migration will do nothing. - If you only have
Regioninstances in your existing database, aLocationTypenamed Region will be created and for each legacyRegioninstance, a correspondingLocationinstance with the same attributes (id,name,description, etc.) and hierarchy will be created. -
If you only have
Siteinstances in your existing database:-
A
LocationTypenamed Site will be created and every preexisting root levelLocationTypein your database will be updated to have the new SiteLocationTypeas their parent. -
For each legacy
Siteinstance, a correspondingLocationinstance with the same attributes (id,name,description,tenant,facility,asn,latitude,longitude, etc.) will be created, and any preexistingLocationsin your database will be updated to have the appropriate "site"Locationsas their parents. -
Model instances that had a
sitefield (CircuitTermination,Device,PowerPanel,RackGroup,Rack,Prefix,VLANGroup,VLAN,Cluster) assigned and did not have alocationattribute assigned will be updated to have theirlocationpoint to the newLocationcorresponding to thatSite. All other attributes on these models will remain unchanged. -
Model instances that were previously associated to the
ContentTypeforSite(ComputedField,CustomField,CustomLink,ExportTemplate,ImageAttachment,JobHook,Note,Relationship,Status,TagandWebhook) will have theirContentTypereplaced withLocation. All other attributes on these models will remain unchanged.
For Example:
-
We will start with a
Siteinstance with name AMS01 as the baseSitefor two top-levelLocationobjects with names root-01 and root-02 respectively. -
During the data migration, a
LocationTypenamed Site will be created, and aLocationof SiteLocationTypenamed AMS01 with all the information (asn,latitude, etc.) from the baseSitewill be created. -
The
Locationobjects named root-01 and root-02 will have this AMS01Locationset as theirparent.
-
-
If you have both
SiteandRegioninstances in your existing database:-
A
LocationTypenamed Region will be created. -
For each legacy
Regioninstance, a correspondingLocationinstance with the same attributes (id,name,description, etc.) will be created. -
A
LocationTypenamed Site will be created with the newLocationTypenamed Region set as itsparent. -
Every pre-existing root-level
LocationTypein your database will be updated to have the newLocationTypenamed Site as itsparent. -
For each legacy
Siteinstance, a corresponding "site"Locationinstance with the same attributes (id,name,description,tenant,facility,asn,latitude,longitude, etc.) will be created with its parent set to the corresponding "region"Locationif any.- If you have
Siteinstances in your database without aRegionassigned to them, one additionalLocationnamed Global Region ofLocationTypeRegion will be created and eachLocationofLocationTypeSite created from the legacy region-lessSiteinstances will have the Global RegionLocationas their parent.
- If you have
-
Model instances that had a
siteattribute (CircuitTermination,Device,Location,PowerPanel,Rack,RackGroup,Prefix,VLANGroup,VLAN,Cluster) assigned and did not have alocationattribute assigned will be updated to have theirlocationpoint to the newLocationofLocationTypeSite. All other attributes on these models will remain unchanged. -
Model instances that were previously associated to the
ContentTypeforSiteorRegion(ComputedField,CustomField,CustomLink,ExportTemplate,ImageAttachment,JobHook,Note,Relationship,Status,TagandWebhook) will have theirContentTypereplaced withLocation. All other attributes on these models will remain unchanged.
For Example:
-
There are two
Siteinstances and oneRegioninstance in your existing database. TheRegionwith name America has one childSiteinstance named AMS01. And the otherSiteinstance named AUS01 is not associated with anyRegion(regionattribute is set toNone). -
The
SiteAMS01 is the baseSitefor two top-levelLocationobjects with names root-01 and root-02 respectively. -
During the data migration, a
LocationTypenamed Region and aLocationof thisLocationTypenamed America with all the same information will be created. -
The
LocationTypenamed Site with itsparentset as the newLocationTypeRegion and aLocationofLocationTypenamed AMS01 with all the same information (asn,latitude, etc.) will be created. TheLocationAMS01 will haveLocationAmerica as itsparentand each -Locationroot-01 and root-02 will haveLocationAMS01 as itsparent. -
Finally, the
Siteinstance AUS01, since it does not have aRegioninstance associated with it, its correspondingLocationAUS01 will have a newLocationnamed Global Region ofLocationTypeRegion as itsparent. -
In addition, legacy
Siteinstance with name AMS01 also has threeDeviceinstances associated with it named ams01-edge-01, ams01-edge-02, and ams01-edge-03. -
However, ams01-edge-01 only has its
siteattribute set asSiteAMS01 whereas ams01-edge-02 and ams01-edge-03 have both itssiteandlocationattributes setSiteAMS01 andLocationroot-01 respectively. -
During the data migration, ams01-edge-01's
locationattribute will point to the newLocationofLocationTypeSite with name AMS01 while devices ams01-edge-02 and ams01-edge-03 will remain unchanged.
-
Remove Site and Region Related Fields from Models¶
Region and Site relationships are being removed from these models: CircuitTermination, Device, Location, Rack, RackGroup, PowerFeed, PowerPanel, ConfigContext, Prefix, VLAN, VLANGroup, Cluster.
The ContentType for Region and Site are being replaced with Location on these models: ComputedField, CustomField, CustomLink, ExportTemplate, ImageAttachment, JobHook, Note, Relationship, Status, Tag and Webhook.
The region and site fields are being removed in the filter data of DynamicGroup objects. The previously associated values are being added to the existing location field and its associated list of filter values or to a new location key with an empty list if one does not exist.
Check out the API and UI endpoints changes incurred by the changes stated above in the "Upgrading from Nautobot v1.X" guide.
Check out the Region and Site Related Data Model Migration Guide to learn how to migrate your Nautobot Apps and data models from Site and Region to Location.
Corrected Filter Fields (#2804)¶
Warning
This change may introduce breaking changes to your existing DynamicGroup filters, ObjectPermission filters, Relationship filters, and any other saved references to these fields. You should review any existing instances of these models before and after upgrading your production environment for any potentially subtle change. Please refer to the Upgrading from Nautobot v1.X guide for more details.
There were also instances where a foreign-key related field (e.g. console_ports) was incorrectly mapped to a boolean membership filter (e.g. has_console_ports), making it impossible to filter based on specific values of the foreign key:
For example in v1.x:
/dcim/devices/?console_ports=True and /dcim/devices/?has_console_ports=True are functionally the same and this behavior is incorrect.
This has been addressed in v2.x as follows:
console_ports and similar filters are taking foreign key UUIDs as input values and can be used in this format: /dcim/devices/?console_ports=<uuid> whereas has_console_ports and similar filters remain the same.
Check out the specific changes documented in the table at UI and REST API Filter Changes
Enhanced Filter Fields (#2804)¶
Warning
This change may introduce breaking changes to your existing DynamicGroup filters, ObjectPermission filters, Relationship filters, and any other saved references to these fields. You should review any existing instances of these models before and after upgrading your production environment for any potentially subtle change. Please refer to the Upgrading from Nautobot v1.X guide for more details.
Many filter fields have been enhanced to enable filtering by both names and UUID primary keys.
For example in v1.X, to filter RackGroups with a specific parent value in the UI or make changes to them via the REST API, you could only to input slugs as the filter values:
/dcim/rack-groups/?parent=<slug>
Now in v2.x, you are able to filter those RackGroups by their parent(s) names or UUID primary keys:
/dcim/rack-groups/?parent=<name> or /dcim/rack-groups/?parent=<uuid>
Check out the specific changes documented in the table at UI and REST API Filter Changes
Generic Role Model (#1063)¶
The DeviceRole, RackRole, ipam.Role, and IPAddressRoleChoices have all been removed and replaced with a extras.Role model, This means that all references to any of the replaced models and choices now points to this generic role model.
In addition, the role field of the IPAddress model has also been changed from a choice field to a foreign key related field to the extras.Role model.
Job Overhaul (#765)¶
Within Nautobot 2.0, Jobs has undergone significant changes within the overall functionality of Jobs along with migration for existing 1.x Jobs operation. Database changes for Jobs will affect DryRun functionality. Other significant changes to Jobs in 2.0 provide greater interoperability with Celery for registering, logging, and tracking however 2.0 will be moving away from previous backwards compatibility scripts. These improvements will simplify Job implementation and help reduce administration overhead for status tracking on completions and/or failures. For more details, refer to Migrating Jobs from Nautobot v1.X to Nautobot v2.0.
Prefix is_pool Field and "Container" Status replaced by New Field Prefix.type (#1362)¶
A new type field was added to Prefix to replace the is_pool boolean field and the "Container" status. The type field can be set to "Network", "Pool" or "Container", with "Network" being the default.
Existing prefixes with a status of "Container" will be migrated to the "Container" type. Existing prefixes with is_pool set will be migrated to the "Pool" type. Prefixes with both is_pool set and a status of "Container" will be migrated to the "Pool" type.
The "Container" status will be removed and all prefixes will be migrated to the "Active" status if it exists. If the "Active" status was deleted, prefixes will be migrated to the first available prefix status in the database that is not "Container".
Renamed Database Foreign Keys and Related Names (#2520)¶
Warning
This change may introduce breaking changes to your existing DynamicGroup filters, ObjectPermission filters, Relationship filters, and any other saved references to these fields. You should review any existing instances of these models before and after upgrading your production environment for any potentially subtle change. Please refer to the Upgrading from Nautobot v1.X guide for more details.
Some Foreign Key fields have been renamed to follow a more self-consistent pattern across the Nautobot app. This change is aimed to offer more clarity and predictability when it comes to related object database operations:
For example in v1.x to create a circuit object with type "circuit-type-1", you would do:
Circuit.objects.create(
cid="Circuit 1",
provider="provider-1",
type="circuit-type-1",
status="active",
)
and to filter Circuit objects of type "circuit-type-2", you would do:
Now in v2.x, we have renamed the Foreign Key field type on Circuit Model to circuit_type, because this naming convention made it clearer that this Foregin Key field is pointing to the model CircuitType. The same operations would look like:
Circuit.objects.create(
cid="Circuit 1",
provider="provider-1",
circuit_type="circuit-type-1",
status="active",
)
Check out more Foreign Key related changes documented in the table Renamed Database Fields
In addition to the changes made to Foreign Key fields' own names, some of their related_names are also renamed:
For example in v1.x, to query Circuit objects with CircuitTermination instances located in sites ["ams01", "ams02", "atl03"], you would do:
Now in v2.x, we have renamed the Foreign Key field circuit's related_name attribute terminations on CircuitTermination Model to circuit_terminations, the same operations would look like:
Check out more related-name changes documented in the table Renamed Database Fields
Renamed Filter Fields (#2804)¶
Warning
This change may introduce breaking changes to your existing DynamicGroup filters, ObjectPermission filters, Relationship filters, and any other saved references to these fields. You should review any existing instances of these models before and after upgrading your production environment for any potentially subtle change. Please refer to the Upgrading from Nautobot v1.X guide for more details.
Some filter fields have been renamed to reflect their functionalities better.
For example in v1.X, to filter FrontPorts that has a cable attached in the UI or make changes to them via Rest API, you would use the cabled filter:
/dcim/front-ports/?cabled=True
Now in v2.x, you would instead use the has_cable filter which has a more user-friendly name:
/dcim/front-ports/?has_cable=True
Check out the specific changes documented in the table at UI and REST API Filter Changes
REST API Versioning Behavior (#2799)¶
In Nautobot 2.0 and later, the REST API defaults, when the caller doesn't request a specific API version, to using the latest available version of the REST API. This is a change from Nautobot 1.x, where the default behavior was to use the 1.2 version of the REST API even when newer versions were available.
Revamped CSV Import and Export (#254)¶
Exporting objects and lists of objects to CSV format has been totally reimplemented in a new framework for ease of use and maintainability. Instead of accessing http://nautobot/<app>/<model>/?export users can now use the URL pattern http://nautobot/api/<app>/<model>/?format=csv (the "Export" links in the UI have of course been updated accordingly), as the new CSV rendering for exports is based on the REST API serializer definitions. This results in substantially more comprehensive CSV representations of many models.
Conversely, importing objects from CSV format has also been reimplemented in the same new framework. The REST API can now accept CSV files as well as the existing JSON support, and the UI for importing CSVs uses this same framework behind the scenes.
Warning
The Nautobot 2.0 CSV formats for exports and imports are not backwards-compatible with the Nautobot 1.x CSV formats. In general, the CSV formats are subject to refinement in future releases, and should not be considered a stable API for data portability between differing Nautobot versions.
An immediate benefit users can notice from this reimplementation is that CSVs should now generally be "round-trip" capable, meaning that you can export a set of records to CSV format and then import that CSV into a different Nautobot instance (or delete the records and use the CSV to recreate them) without needing to "massage" the CSV into a different set of columns or fields. One caveat to this is many-to-many fields (such as VRF.import_targets or Interface.tagged_vlans), which are not currently included in CSV exports or supported for CSV import, with the exception of object tags which are supported. Support for many-to-many export and import via CSV may be added in a future release.
A benefit to App developers is that data models no longer need to define a csv_headers attribute or implement a to_csv method, because implementing the REST API for a model is now sufficient to enable CSV import/export support for that model. Similarly, there is no longer a need to implement a CSVForm for each model in order to support CSV import.
In addition to the above improvements, you can now reference related objects in your CSV by using a combination of unique fields. For instance:
Instead of:
you can use:
This enhancement allows you to specify related objects using their unique attributes, making data import even more intuitive and flexible.
Removed¶
Brief REST API Query Parameter (#3042)¶
Support for ?brief REST API query parameter and Nested*Serializers have been removed in Nautobot v2.X. They are replaced by the new ?depth query parameter.
django-cacheops (#1721)¶
Nautobot no longer uses django-cacheops for caching of database queries or other information. In some cases this has been replaced by the use of Django's native Redis caching capabilities.
The configuration settings CACHEOPS, CACHEOPS_DEFAULTS, CACHEOPS_DEGRADE_ON_FAILURE, CACHEOPS_ENABLED, CACHEOPS_HEALTH_CHECK_ENABLED, CACHEOPS_REDIS, etc. are now unused by Nautobot and may be removed from your configuration.
Legacy manage.py Removed (#1634)¶
When we launched Nautobot we introduced the nautobot-server command as the primary entrypoint to managing your application, replacing the legacy manage.py script that is common with Django-based applications. The original manage.py was left there initially in v1.0.0 as a fallback, however it is no longer needed, so we have removed it in Nautobot 2.0.
Redundant Filter Fields (#2804)¶
Warning
This change may introduce breaking changes to your existing DynamicGroup filters, ObjectPermission filters, Relationship filters, and any other saved references to these fields. You should review any existing instances of these models before and after upgrading your production environment for any potentially subtle change. Please refer to the Upgrading from Nautobot v1.X guide for more details.
As a part of breaking changes made in v2.X, shadowed filter/filterset fields are being removed throughout Nautobot.
In Nautobot 1.x, for some of the foreign-key related fields:
- The field was shadowed for the purpose of replacing the PK filter with a lookup-based on a more human-readable value (typically slug, if available).
- A PK-based filter was available as well, generally with a name suffixed by _id
Now these two filter fields will be replaced by a single filter field that can support both names and UUID primary keys as inputs; As a result, PK-based filters suffixed by _id will no longer be supported in v2.0.
For example in v1.X, to filter Circuits with a specific provider value in the UI or make changes to them via the REST API with a UUID primary key, you would use:
/circuits/circuits/?provider_id=<uuid>
Now in v2.x, that format is no longer supported. Instead, you would use:
/circuits/circuits/?provider=<uuid>
Check out the specific changes documented in the table at UI and REST API Filter Changes
RQ support (#2523)¶
Support for RQ and django-rq, deprecated since Nautobot 1.1.0, has been fully removed from Nautobot 2.0.
Slug Fields (#2662)¶
The slug field has been removed from all core models except for GitRepository. Generally, Nautobot URLs that referenced the slug field have been changed to use the primary key instead. For example, the URL for https://nautobot/dcim/locations/building-01 would change to a URL similar to https://nautobot/dcim/locations/e41f381a-a53b-485a-886f-9d36859b47a1. There are a small number of URLs that still reference a value that's not the primary key, including some URLs related to secrets providers, cables and jobs.
A natural_slug property has been added to all models that inherit from BaseModel to provide a human-readable value for use in tools that require a loose reference to a Nautobot object, but this value is not equivalent to the slug field and is not guaranteed to be unique.
A natural key interface has been provided for most models to allow for uniquely referencing objects by a name that is friendlier than the primary key. For more information on the usage of natural keys vs primary keys see the documentation for Uniquely Identifying a Nautobot Object.
v2.0.4 (2023-11-13)¶
Security¶
- #4748 - Updated
Djangominimum version to 3.2.23 to protect against CVE-2023-46695. - #4782 - Updated alpha-UI dependency
axiosto version 1.6.0 due to CVE-2023-45857.
Added¶
- #4349 - Added Note List View.
- #4704 - Added missing Rack table to Role Detail View.
- #4709 - Added form field to allow assignment of IP addresses when creating a new Interface.
Changed¶
- #4709 - Changed order of fields displayed when editing an Interface to be the same as when creating a new Interface.
Fixed¶
- #3990 - Fixed the issue preventing associated Note objects from being deleted when the assigned object is deleted.
- #4626 - Fixed incorrect "Prefixes" link from VRF detail view.
- #4675 - Fixed the issue where the 500 error page does not support dark mode.
- #4680 - Fixed the bug that prevented the user from adding tags without member objects as DynamicGroup
tagsfilters. - #4681 - Fixed NAPALM device view functions assuming 'Active' as the correct status.
- #4684 - Fixed InterfaceRedundancyGroup.status to no longer be nullable.
- #4684 - Fixed InterfaceRedundancyGroupAssociation.created to be a DateTimeField.
- #4685 - Fixed invalid link to IPAddress in Interface Detail View.
- #4704 - Fixed a display issue with table pagination controls floating over other UI elements.
- #4704 - Fixed Role detail view displaying tables for content types that aren't in the Role's allowed content types.
- #4709 - Fixed incorrect (missing) filtering of available VRFs by parent Device when editing an Interface in the UI.
- #4718 - Fixed bug in which a device's device redundancy group priority was not being set to
Nonewhen the device redundancy group was deleted. - #4726 - Fixed the bug caused by Tenant Edit View template accessing
groupinstead oftenant_group. - #4728 - Fixed bug with JobResultFilterSet and ScheduledJobFilterSet using
django_filters.DateTimeFilterfor only exact date matches. - #4751 - Fixed a bug with
BaseModel.get_absolute_urlreturning an AttributeError instead of raising it. - #4779 - Fixed an error when syncing a git repo without a worker running.
Documentation¶
- #3927 - Fixed documentation for creating databases on PostgreSQL version 15.
- #4622 - Fixed docs incorrectly referencing Nautobot 1.5 as the LTM release for 1.x.
- #4642 - Added
documentationcategory to release-notes. - #4704 - Fixed a broken link in CONTRIBUTING.md to point to the correct contributing guide.
- #4713 - Fixed documentation regarding API endpoint to use for running saved GraphQL queries.
- #4714 - Added documentation detailing rack power utilization calculation.
- #4720 - Added redeployment demo environment step to release-checklist.md.
- #4767 - Updated Job and App Developer docs to import from the
nautobot.appsmodule throughout.
Housekeeping¶
- #4638 - Updated Apps upstream testing CI to use the correct branch pairings post-2.0.
- #4686 - Fixed incorrect tagging of 1.6.x Docker
nautobot-devimages aslatest. - #4700 - Removed incorrect
NAUTOBOT_DYNAMIC_GROUPS_MEMBER_CACHE_TIMEOUTenvironment variable reference from settings documentation. - #4709 - Replaced a number of
ModelChoiceFieldin DCIM forms with more appropriateDynamicModelChoiceField.
v2.0.3 (2023-10-23)¶
Security¶
- #4671 - Updated
urllib3to 2.0.7 due to CVE-2023-45803. This is not a direct dependency so it will not auto-update when upgrading. Please be sure to upgrade your local environment. - #4673 - Fixed token exposure in
JobResulttraceback and result output when aGitRepositorySyncjob fails in certain ways. - #4692 - Fixed potential exposure of hashed user password data on certain REST API endpoints when using the
?depth=1query parameter. For more details, please refer to GHSA-r2hw-74xv-4gqp.
Added¶
- #4612 - Added validation step to handle invalid/legacy filters from v1.x in DynamicGroup form validation.
- #4668 - Added an
ENABLE_ALPHA_UIconfiguration option to the settings, which is initially set to False. When set to True, this option enables the "Alpha UI 2.0" feature.
Changed¶
- #4668 - Changed the flag
--no-build-uito--build-ui, and its default value to False for thenautobot-server post-upgradecommand.
Fixed¶
- #4604 - Fixed
post_upgradebug involving potential left over references to Aggregate, DeviceRole, and RackRole ContentTypes in ObjectChange records. - #4608 - Fixed error
'IPAddressBulkAddForm' has no field named 'parent'when bulk creating IPs via UI. - #4676 - Ensured that
ScheduledJob.job_classvalues are correctly transferred toScheduledJob.taskduring v2 migration. - #4692 - Fixed incorrect inheritance of
Metaattributes into nested serializers (depth >= 1).
Documentation¶
- #4669 - Added redirects from 1.x documentation paths to their 2.x equivalents to fix broken links/bookmarks.
Housekeeping¶
- #4692 - Added check in REST API generic test cases to detect strings like
passwordandsha256that shouldn't generally appear in REST API responses.
v2.0.2 (2023-10-16)¶
Security¶
- #4586 - Updated
urllib3to 2.0.6 due to CVE-2023-43804. This is not a direct dependency so it will not auto-update when upgrading. Please be sure to upgrade your local environment. - #4621 - Updated
postcssnpmpackage to 8.4.31 to address CVE-2023-44270. - #4652 - Updated
babel/traversenpmdependency to 7.23.2 to address CVE-2023-45133.
Added¶
- #4361 - Added
SUPPORT_MESSAGEconfiguration setting. - #4607 - Added
nautobot-server audit_graphql_queriesmanagement command for evaluating breaking filter changes to existing GraphQLQuery instances.
Changed¶
- #4313 - Updated device search to include manufacturer name.
Fixed¶
- #4472 - Fixed incorrect logic in
nautobot_config.py.j2template that wouldn't detect the MySQL engine when Prometheus metrics are enabled. - #4547 - Fixed incorrect form field type for
DeviceFilterForm.device_redundancy_group_priority. - #4588 - Fixed the error when creating a child Location under a non-globally-unique named parent Location.
- #4603 - Fixed a bug that makes Manufacturers list fail to load.
- #4639 - Fixed the ability to attach images to Locations.
Documentation¶
- #4591 - Fixed incorrect documentation of
FEEDBACK_BUTTON_ENABLEDconfiguration setting. - #4591 - Fixed a number of missing app code-reference links in the documentation table of contents.
- #4592 - Updated formatting on installation docs.
- #4598 - Fixed inconsistent column names in
docs/user-guide/administration/upgrading/from-v1/tables/v2-filters-renamed-fields.yml. - #4613 - Changed CLI reference from
dnstodnffor install on RHEL systems. - #4619 - Fixed broken links in Nautobot README.md.
Housekeeping¶
- #4611 - Updated pylint to use multiple threads.
v2.0.1 (2023-10-04)¶
Fixed¶
- #4436 - Allowed Interfaces of type
Virtual,LAG, andBridgeto be selected as a virtual Interface'sparent. - #4572 - Fixed a JS crash when using list view search box to filter objects in legacy UI.
Housekeeping¶
- #4523 - Fixed
invoke eslintnot running against local development environment. - #4552 - Improved
test_bulk_delete_form_contains_all_filteredandtest_bulk_edit_form_contains_all_filteredgeneric tests to fail more gracefully if insufficient test data is available.
v2.0.0 (2023-09-28)¶
Added¶
- #4553 - Implement table sticky headers.
Fixed¶
- #4550 - Fixed a 500 error caused by
PrefixFormwhenprefix_lengthwas omitted fromprefixinput. - #4559 - Fixed behavior of a
DynamicGroupwith an invalidfilterto fail closed rather than failing open. - #4566 - Fixed table sticky headers in Firefox.
Documentation¶
- #4489 - Added release note overview to Jobs Overhaul.
- #4492 - Added slug removal documentation to the 2.0 release notes Release Overview.
- #4488 - Added documentation on the ability to assign one IPAddress to multiple Interfaces/VMInterfaces in Nautobot 2.0 release overview.
- #4556 - Added documentation for using lowercase variables in App provided Constance Config.
v2.0.0.rc-4 (2023-09-27)¶
Security¶
- #4500 - Updated
cryptographyto 41.0.4 due to GHSA-v8gr-m533-ghj9. This is not a direct dependency so will not auto-update when upgrading. Please be sure to upgrade your local environment.
Added¶
- #4103 - Added UI viewset for detail/list/import/export views of
IPAddressToInterfaceobjects. - #4418 - Added
netutils_parsertonetwork_driver. - #4425 - Added
BaseModelSerializer.determine_view_options()API for use in new UI. - #4425 - Added option for individual model serializers to override the default contents of the Advanced tab in the new UI.
- #4425 - Added option for individual model serializers to define additional tabs in the new UI and the fields included in such tabs.
- #4426 - Added the ability to specify one or more content types to the
fix_custom_fieldsmanagement command. - #4434 - Implemented
ObjectListview filters inFiltersPanelContentcomponent of the new UI. - #4459 - Added more re-exports to the
nautobot.appsnamespace. - #4462 - Added FilterSet data to REST API metadata.
- #4474 - Added live search of
qfilter to list and detail views. - #4476 - Added
/api/extras/jobs/<name>/...REST API endpoints as an alternative option to the existing/api/extras/jobs/<uuid>/...endpoints. - #4477 - Added the
slugifyDjango template tag as a Jinja filter. - #4524 - Added optional
apiparameter toNotesMixin.get_notes_url()model method.
Changed¶
- #2472 - Added
tagged_vlansanduntagged_vlanas selected/prefetched in (VM)Interface API views. - #2472 - Added
ip_addressesas prefetched in VMInterface API views. - #4014 - Refine Prefix List and Detail Views in new UI.
- #4367 - Changed CSV export to use multi-column natural keys for related models instead of composite-keys.
- #4367 - Changed
natural_key_field_namesfor Prefix from["namespace", "prefix"]to["namespace", "network", "prefix_length"] - #4425 - Refined layout of new-UI Device detail view, including addition of "Virtual Chassis" tab.
- #4425 - Moved logic deriving list and detail view schemas for new UI from a serializer from
nautobot.core.api.metadatatonautobot.core.api.serializers. - #4425 - Changed new-UI detail-view schema construction to automatically include
commentsandtagsfields (if present) in the appropriate location to avoid needing every serializer to specify these fields in its configuration. - #4425 - Refined the structure of new-UI detail-view and list-view schemas.
- #4426 - Changed
fix_custom_fieldsto skip models without any custom fields. - #4462 - Updated new UI to use REST API FilterSet metadata to populate filter form.
Removed¶
- #4425 - Removed composite key from new UI object-detail "Advanced" tab.
- #4448 - Removed composite key from user-facing interfaces (API, UI).
- #4538 - Removed unnecessary dependency on
semvernpm package.
Fixed¶
- #4033 - Fixed filtering objects in bulk edit and bulk delete.
- #4327 - Fixed a case where an ObjectChange would not be created when making an M2M change via the ORM.
- #4327 - Fixed an error when trying to send a Webhook after all ObjectChanges for an object had been deleted/pruned.
- #4327 - Fixed a case where a JobHook would not be sent when making an M2M change after all existing ObjectChanges for the object had been deleted/pruned.
- #4396 - Fixed rack form silently dropping custom field values.
- #4416 - Fixed a bug that raises
CablePath matching query does not existexception when deleting a device with multiple types of connected interfaces. - #4426 - Fixed a potential out-of-memory issue when running
nautobot-server fix_custom_fieldson large datasets. - #4430 - Fixed VLAN form missing VLAN Group.
- #4469 - Fixed issue that resulted in stacktrace if no model docs and dunder str was not resolvable.
- #4469 - Fixed
alter_querysetnot being respected by list views based onNautobotUIViewSet. - #4473 - Fixed a bug that stripped any
tagsfield from Job input forms. - #4487 - Fixed general UI layout sizing and spacing.
- #4503 - Fixed a bug that stripped any
tagsfield from DynamicGroup filter options inDynamicGroupEditForm. - #4510 - Fixed placeholder values being present in new UI.
- #4514 - Fixed an issue with
alter_querysetnot being called when constructing a table. - #4524 - Fixed incorrect implementation of
test_notes_url_on_objecttest case that never actually tested anything. - #4524 - Fixed incorrect permissions enforcement on REST API
/notes/action endpoints. - #4524 - Fixed an exception in REST API
/notes/action endpoints that was inadvertently introduced in #4517. - #4535 - Fixed off-by-one error in new UI date processing.
Dependencies¶
Documentation¶
- #3303 - Added additional section headers to the Release Overview of Nautobot 2.0 release notes.
- #3303 - Added TODO comments for each additional section header.
- #3689 - Added namespace diagram to docs.
- #4301 - Added missing and good-to-have information in the app migration guide.
- #4301 - Removed references to
RoleModelSerializerMixin,RoleRequiredRoleModelSerializerMixinandRoleSerializerFieldfrom generic Role-related documentation. - #4420 - Updated jobs migration docs to reflect alternate method of job params migration.
- #4490 - Added additional information to the release-notes and other documentation about the revamped CSV import/export feature.
- #4491 - Added documentation to Nautobot 2.0 release notes Release Overview for removal of
manage.py. - #4491 - Added documentation to Nautobot 2.0 release notes Release Overview for change of
ChangedLoggedModel.createdfield fromDateFieldtoDateTimeField. - #4493 - Added release-note overview of alpha 2.0 UI.
- #4493 - Reordered overview items in the 2.0 release-notes.
- #4507 - Added Data Validation Engine to list of apps in docs.
Housekeeping¶
- #4479 - Configured
npmin Docker image to use 30s timeout, pinnednpmto 9.X, and changed Docker build to usenpm ciinstead ofnpm installto improve builds. - #4524 - Added
test_notes_url_functionalitytest case toAPIViewTestCases.NotesURLViewTestCasegeneric test class.
v2.0.0-rc.3 (2023-09-15)¶
Security¶
- #3880 - Updated
GitPythonto3.1.36to addressCVE-2023-41040.
Added¶
- #3934 - Added
Namespacecolumn toVRFDeviceAssignmentTableandVRFPrefixAssignmentTableto display assigned VRFs'namespaceproperty. - #3934 - Added
namespaceattribute to rendering of "IP Addresses" columns of relevantInterfaceandInterfaceRedundancyGrouptables. - #3934 - Added
namespaceattribute to rendering ofprimary_ipfields inDeviceDetailViewandVirtualMachineDetailView. - #3934 - Added hover copy button and functionality to
primary_ipfield inVirtualMachineDetailView. - #4011 - Added redirect in new UI to legacy UI if the page being visited is not new UI ready.
- #4249 - Added REST API endpoint for the IPAddressToInterface model.
- #4346 - Implemented
.natural_slugproperty on all models.
Changed¶
- #4012 - Disable non ready Model View in new-ui sidebar.
- #4015 - Refined new-UI IPAddress detail view.
- #4017 - Refined new-UI DeviceType detail view.
- #4017 - Moved
object_typeto the Advanced tab of new-UI detail views in general. - #4019 - Refine new-ui Location Detail view.
- #4333 - Updated Dockerfile not to use Python virtual environment.
- #4440 - Fixed an issues with ModelForm's that used
__all__onMeta.fieldsandcustom_fieldsdisplayed a JSON blob.
Removed¶
- #3934 - Removed
ip_familyqueryset annotation fromPrefixQuerySetandIPAddressQuerySet. - #4011 - Removed the "disable menu" feature for non-NewUI ready menu links in the sidebar and NavBar.
- #4015 - Removed
tags,custom-fields,computed-fields,relationshipsfrom new-UI object detail - #4017 - Removed
notes_urlfrom new-UI object detail views.
Fixed¶
- #3934 - Fixed validation logic for VirtualMachine primary ips.
- #4010 - Fixed error not being raised when an invalid parent is provided to the IPAddress in both the API and ORM.
- #4293 - Fixed the issue of ObjectChange Detail View not rendering in the new UI.
- #4307 - Fixed incorrect hyperlinks that exist in the Notes and ChangeLog Tables in the ObjectDetailView of the new UI.
- #4329 - Fixed an issue in
TreeNodeMultipleChoiceFilterfiltering that could result in incorrect inclusion of unrelated records with the same name located elsewhere in the tree. - #4377 - Fixed incorrect OpenAPI schema for filters available on Device and VirtualMachine REST API endpoints.
- #4377 - Fixed incorrect logic for queryset annotation on Device and VirtualMachine REST API views.
- #4388 - Fixed a bug that makes ConfigContexts applied to parent locations missing from rendered config context of child location Devices/Virtual Machines.
- #4407 - Fixed Dockerfile Node.js
setup_XX.xdeprecated script.
Documentation¶
- #2821 - Adds navigation.footer to mkdocs features to enable navigation in the footer.
- #2821 - Updates installation documentation into a single path, using tabs for MySQL/PostgeSQL & Ubuntu/Debian/RHEL.
- #2821 - Removes centos.md and ubuntu.md as these are collapsed into single
install_system.mdfile. - #3289 - Added documentation on factory data caching and generic filter tests.
- #3372 - Added documentation for migrating permission constraints.
- #4249 - Added section on many-to-many relationships in the REST API overview docs.
- #4303 - Added documentation on identifying objects after the removal of slug fields.
- #4326 - Update documentation on Nautobot release workflow.
- #4429 - Updated the pylint-nautobot migration steps.
Housekeeping¶
- #2821 - Updates docker-compose standalone to docker compose plugin to assist in development environment.
- #4310 - Updated CI integration workflow to remove some redundant tests, run more tests in parallel and remove arm64 platform from the container build.
- #4311 - Updated CI pull request workflow for
nextbranch to remove some redundant tests, run more tests in parallel and test the container build. - #4338 - Updated GitHub CI integration workflow for Long-term maintenance branch.
- #4409 - Updated upstream testing workflow for apps to test against LTM and 2.0 with
ltm-1.6anddevelopbranch tags respectively.
v2.0.0.rc-2 (2023-08-24)¶
Added¶
- #3794 - Added support for multi-column keys for CSV Import.
Changed¶
- #2807 - Renamed
IPAddressvrffilter tovrfs. - #2807 - Renamed
Prefixmask_lengthfilter toprefix_lengthandvrffilter tovrfs. - #2807 - Enhanced
Prefixvlan_vidfilter to permit multiple query values. - #2807 - Renamed
RouteTargetexporting_vrffilter toexporting_vrfsandimporting_vrffilter toimporting_vrfs. - #2807 - Renamed
Serviceportfilter toports. - #2807 - Renamed
VRFexport_targetfilter toexport_targetsandimport_targetfilter toimport_targets. - #2853 - Renamed
JobViewtoJobRunViewandJobDetailViewtoJobView. - #2853 - Rename url lookups
jobtojob_run_by_class_pathandjob_detailtojob. - #2853 - Changed
as_form_class,as_formandvalidate_datafunctions on BaseJob Model toclassmethods. - #4305 - Merged develop back into next after release 1.6.1
Removed¶
- #2807 - Removed
RouteTargetexporting_vrf_idandimporting_vrf_idfilters as they are redundant with theexporting_vrfsandimporting_vrfsfilters. - #2807 - Removed
Servicedevice_idandvirtual_machine_idfilters as they are redundant with thedeviceandvirtual_machinefilters. - #2807 - Removed
VRFexport_target_idandimport_target_idfilters as they are redundant with theexport_targetsandimport_targetsfilters. - #2853 - Removed
/extras/jobs/results/<uuid:pk>/URL endpoint.
Fixed¶
- #2807 - Fixed misnamed
tagfields on various filter forms (correct filter name is nowtags). - #4299 - Added missing
to_field_nameattribute onTagFilterField, which was causing dynamic-group filtering failures. - #4300 - Fixed a permission issue when using
final-devcontainers by switching to root user before exposing port and entrypoint.
v2.0.0rc1 (2023-08-18)¶
Added¶
- #1175 - Added "Submit Feedback" functionality to the new UI.
- #3582 - The 'GetFilterSetFieldDOMElementAPIView' now has the option to return the filterset field's DOM element in JSON format.
- #3904 - Added Input component for changing the page number, in addition to using the arrows.
- #3904 - Added total number of rows to footer.
- #3976 - Added support for related-object specification by PK (UUID) in CSV imports as an alternative to composite-keys.
- #3976 - Added support for related-object specification by composite-key in JSON REST API data.
- #3977 - Added
DEVICE_NAME_AS_NATURAL_KEYandLOCATION_NAME_AS_NATURAL_KEYoptional config settings to allow the use of simplified natural keys for Device and Location models. - #3978 - Added data migration for JobResult to migrate old status to its equivalent new status.
- #3983 - Added
FiltersPanelUI component. - #4052 - Added the option for models to specify a
documentation_static_pathattribute if a non-default path is needed. - #4081 - Added data migration to ensure
Noteobjects'createdtimestamps are unique. - #4100 - Added columns for interface count, device count, VM interface count and virtual machine count to the IP address list view.
- #4154 - Added handleOnKeyDown to Pagination to now update the page number when Enter key is pressed.
- #4154 - Added double arrow icons to Pagination for navigating to first/last page.
- #4197 - Added Bulk Import View for Namespace.
- #4225 - Added Namespace to IPAddressDetailTable.
- #4228 - Incorporated all code changes from Nautobot 1.6.0.
Changed¶
- #3229 - Rename JobResult.data to JobResult.result and delete the original JobResult.result.
- #3636 - Reintroduced "Assign IP Address" button to Device Interfaces list view.
- #3892 - Removed
loggerkwarg fromJobResult.log(). Jobs'self.loggerlogging instance automatically logs to both the console and database and should be used instead of this method. - #3892 - Changed the function signatures for
nautobot.extras.datasources.gitmethodsget_repo_from_url_to_path_and_from_branch,ensure_git_repository,git_repository_dry_run,import_config_context,import_local_config_context, andimport_config_context_schema. - #3904 - Restyled the pagination section.
- #3904 - Modified the back "<" and next ">" arrows to navigate to the previous/next page, respectively, rather than the first/last page.
- #3904 - The back "<" and next ">" arrows no longer show when they aren't relevant (i.e. when on the first/last page).
- #3904 - Changed Pagination component from Class to function.
- #3906 - Changed visual loading behavior of object list views in new UI.
- #3928 - Updated settings documentation for Nautobot 2.0 Celery changes.
- #3972 - Changed the natural-key for
ComponentModelto["name", "device"]. - #3972 - Re-ordered the natural-key fields for
PowerOutletandPowerPanel. - #3972 - Changed the natural-key fields for
Cable,CablePath, andTaggedItemto merely "pk". - #3972 - Changed the natural-key for
RackReservationto["units", "racks"]. - #3972 - Changed the natural-key of
VirtualChassisto "name". - #3976 - Moved
NautobotHyperlinkedRelatedFieldfromnautobot.core.api.serializerstonautobot.core.api.fields. - #4013 - Refined the Device Detail View in the New UI.
- #4061 - Changed the
devandfinal-devDocker images to install and run Nautobot as anautobotuser instead of asroot. - #4061 - Updated
poetryversion included indevandfinal-devDocker images from 1.3.1 to 1.5.1. - #4061 - Changed all Docker images to install Nautobot and its dependencies to a virtualenv in
/opt/nautobot/instead of the system Python. - #4061 - Changed Docker build to install dependencies for and then build the new UI as a separate set of stages from the installation of Python dependencies and build of the Python package.
- #4164 - Modified docker dev stage to run as root user to prevent permission issues with bind mounts.
- #4242 - Changed behavior of
devandfinal-devDocker images to disable installation metrics by default.
Removed¶
- #3761 - Remove remaining
SiteandRegionreferences from core docs. - #3892 - Removed unused method
get_job_result_and_repository_recordinnautobot.extras.datasources.git. - #4061 - Removed
node_modulesshared volume from Docker development environment as no longer needed. - #4104 - Removed unused
primary_for_devicefrom Interface data migration. - #4115 - Removed temporary code from
ObjectEditViewthat was working around some IPAddress/Prefix form validation gaps.
Fixed¶
- #3904 - Added proper spacing/alignment to pagination section.
- #3974 - Corrected the natural-key definitions for
ComputedField,CustomField,FileAttachment,ImageAttachment,ObjectChange,Relationship,RelationshipAssociation, andTokenmodels. - #3976 - Fixed an error when creating
VRForPrefixrecords via the REST API without specifying anamespacevalue. - #4013 - Fixed incorrect related model url rendering in ObjectRetrieve view.
- #4061 - Fixed error when running 'invoke markdownlint' with Docker Compose workflow.
- #4083 - Fixed a issue that was causing the build process of react to be slow.
- #4100 - Fixed
assignedcolumn in the IP address list view. - #4115 - Fixed missing data validation in
IPAddressFormandPrefixForm. - #4131 - Fixed inability to filter most models with
.exclude(composite_key="..."). - #4131 - Fixed inability to call
Prefix.objects.exclude(prefix="..."). - #4131 - Fixed inability to call
IPAddress.objects.exclude(address="..."). - #4149 - Fixed a bug that prevented renaming a
Rackif it contained any devices whose names were not globally unique. - #4154 - Added useEffect to fix the
last_pagein Pagination from not updating dynamically. - #4241 - Added a timeout and exception handling to the
nautobot-server send_installation_metricscommand.
Dependencies¶
- #4125 - Added support for Python 3.11.
- #4125 - Updated
django-auth-ldapoptional dependency to~4.3.0. - #4125 - Updated
django-cors-headersdependency to~4.2.0. - #4125 - Updated
django-storagesoptional dependency to~1.13.2. - #4125 - Updated
django-tables2dependency to~2.6.0. - #4125 - Updated
django-tree-queriesdependency to~0.15.0. - #4125 - Updated
drf-spectaculardependency to~0.26.3. - #4125 - Updated
napalmoptional dependency to~4.1.0. - #4125 - Updated
Pillowdependency to~10.0.0. - #4125 - Updated
prometheus-clientdependency to~0.17.1. - #4125 - Updated
social-auth-coreoptional dependency to~4.4.2. - #4143 - Updated
celerydependency to~5.3.1. - #4143 - Updated
django-celery-beatdependency to~2.5.0. - #4143 - Updated
django-constancedependency to~2.9.1. - #4143 - Updated
django-extensionsdependency to~3.2.3. - #4143 - Updated
django-prometheusdependency to~2.3.1. - #4143 - Updated
django-redisdependency to~5.3.0. - #4143 - Updated
django-taggitdependency to~4.0.0. - #4143 - Updated
django-timezone-fielddependency to~5.1. - #4143 - Updated
GitPythondependency to~3.1.32. - #4143 - Updated
graphene-djangodependency to~2.16.0. - #4143 - Updated
Jinja2dependency to~3.1.2. - #4143 - Updated
jsonschemadependency to permit versions up to 4.18.x. Note that versions back to 4.7.0 are still permitted, so this dependency may not necessarily auto-upgrade when updating Nautobot. - #4143 - Updated
MarkupSafedependency to~2.1.3. - #4143 - Updated
mysqlclientoptional dependency to~2.2.0. - #4143 - Updated
packagingdependency to~23.1. - #4143 - Updated
psycopg2-binarydependency to~2.9.6.
Documentation¶
- #3330 - Added UI configuration documentation.
- #3386 - Added documentation linking to best practices for database backup.
- #3386 - Added missing files to the documentation table of contents.
- #3387 - Added an app developer migration guide on how to upgrade an Nautobot App from v1.x to v2.0.
- #3394 - Added Developer migration guide.
- #3690 - Added an IPAM Migration Guide for users upgrading to Nautobot 2.0.
- #4042 - Added additional documentations and references for how CustomField, ComputedField, and Relationship behave in Nautobot v2.0.
- #4061 - Fixed a few broken links in the documentation.
- #4091 - Added information about installing and running Node.js as a part of the Nautobot installation documentation.
Housekeeping¶
- #4028 - Fixed CI integration workflow to publish 'final-dev', and build only
finalimages. - #4028 - Fixed CI integration workflow
set-outputwarnings. - #4061 - Changed development
nodejsDocker container to use Nautobotdevimage instead of genericnodeimage. - #4061 - Updated
markdownlint-clito version 0.35.0. - #4061 - Consolidated development/non-development
package.jsonandpackage-lock.jsonfiles into a single set of files. - #4124 - Fixed inability to start
nodejsdevelopment container due to missing files. - #4125 - Updated various development-only dependencies to the latest available versions.
- #4143 - Updated various development-only dependencies to the latest available versions.
- #4242 - Changed
development/nautobot_config.pyto disable installation metrics for developer environments by default. - #4254 - Fixed CI container builds failing on
npm installsteps. - #4285 - Fixed
nextcontainer build workflow.
v2.0.0-beta.2 (2023-07-07)¶
Added¶
- #3287 - Added
nautobot-server audit_dynamic_groupsmanagement command for evaluating breaking filter changes to existing DynamicGroup instances. - #3526 - Added detail view UI layout config.
- #3635 - Added
interfacesandvm_interfacesfields to REST API representation ofIPAddress. - #3845 - Added data migration to ensure all existing service instances fit those uniqueness constraints.
- #3845 - Added CreateView for Service Model.
- #3846 - Added migration helper method to check if a model contains duplicate records based on its natural key fields.
- #3846 - Added migration to check whether all existing Virtual Chassis instances have unique names and to fail if they do not.
- #3885 - Added a
unique_togetherconstraint forObjectChangerecords. - #3935 - Added constraints to the
parentfield onPrefixbased on the prefix'stypeand the parent'stype. - #3939 - Added a post-migration helper tool for de-duplicating
IPAddresses. - #4003 - Synced in code changes from
developbranch up through version 1.5.22. - #4004 - Added
--saveoption tonautobot-server validate_modelscommand. - #4004 - Added
successful_postcallback function toObjectEditView. - #4004 - Added
parentfilter forPrefixobjects. - #4004 - Added warning messages when creating or editing a
PrefixorIPAddressthat does not follow prefixtypeguidance.
Changed¶
- #2662 - Changed many FilterSet filters to filter on (name or ID) instead of (slug or ID) since the relevant model
slugfields have been removed. - #2662 - Changed FilterSet filters referring to
DeviceTypeobjects to filter on (model or ID) instead of (slug or ID). - #2662 - Changed
NaturalKeyOrPKMultipleChoiceFilterdefaultto_field_namefromslugtoname. - #2662 - Replaced
NameSlugSearchFilterSetwithNameSearchFilterSet. - #2662 - Changed default
ModelViewTestCase._get_url()behavior to preferpk-based URLs overslug-based URLs. - #2662 - Changed
ObjectEditView.get_object()andObjectDeleteView.get_object()to preferpk-based object lookups overslug-based lookups. - #2662 - Changed Git repository provided "implicit" config context files to be based on
name(ormodelin the case of DeviceType contexts) instead ofslug. - #2916 - Updated prefix utilization calculation.
- #3287 - Changed the
ip_versionfilters inPrefixFilterSetandIPAddressFilterSettodjango_filters.NumberFilter. - #3424 - Added
IPAddress.typefield and moved DHCP/SLAAC status to types. - #3634 - Restored
assigned_to_interfaceas aRelatedMembershipBooleanFilterwith namehas_interface_assignmentsonIPAddressFilterSet. - #3634 - Restored
present_in_vrfandpresent_in_vrf_idfilters onIPAddressFilterSet. - #3725 - Changed REST API nested hyperlink to a brief object representation consisting of its ID, URL, and object_type.
- #3748 - Updated API serializers to support Namespaces and unskip unit tests
- #3770 - Modified the text color to be gray-1 for the sidebarNav components.
- #3770 - In Layout.js, also made the 'Return to Legacy UI' link gray-1 for consistency.
- #3770 - Made the sidebar button links be orange when selected and on that page.
- #3778 - Changed the REST API depth for generating the OpenAPI schema from 1 to 0.
- #3778 - Set
ENUM_GENERATE_CHOICE_DESCRIPTIONto False to make OpenAPI schema for REST API filters less verbose. - #3793 - Renamed Natural-key slug to Composite key throughout the code base, UI, REST API, and documentation.
- #3793 - Changed url separator character for Composite keys from
&to;. - #3845 - Changed
Service.nameandService.deviceorService.nameandService.virtual_machineto be globally unique and to serve as the natural key for this model. - #3846 - Changed
VirtualChassis.nameto be globally unique and to serve as the natural key for this model. - #3847 - Changed
ScheduledJob.nameto be globally unique and serve as the natural key for this model. - #3847 - Increased
ScheduledJob.taskmax_lengthto fix an off-by-one potential error. - #3848 - Changed
ExportTemplateuniqueness constraint (and natural key) to be simply(content_type, name). - #3849 - Changed
ConfigContext.nameto be globally unique and serve as the natural key for this model. - #3849 - Changed
ConfigContextSchema.nameto be globally unique and serve as the natural key for this model. - #3850 - Changed VLANGroup
nameto unique. - #3851 - Changed
ObjectPermission.nameto be globally unique and serve as the natural key for this model. - #3854 - Updated default index page for "Networks" context to Prefixes.
- #3898 - Changed the
IPAddressnatural key definition (IPAddress.natural_key_field_names) to[parent__namespace, host]. - #3936 - Restored navigation menu structure in the legacy UI.
- #3939 - Changed
Device.primary_ip4andprimary_ip6fields fromOneToOneFieldtoForeignKey, relaxing the uniqueness constraint. - #3939 - Changed
VirtualMachine.primary_ip4andprimary_ip6fields fromOneToOneFieldtoForeignKey, relaxing the uniqueness constraint. - #3940 - Updated
JOBS_ROOTJobs import code to check for conflicts with existing package names. - #3953 - Removed static "Home" text.
- #3953 - Fixed padding/spacing of Home and Object Views to be consistent.
- #3973 - Changed natural-key for
Prefixmodel to[namespace, prefix]. - #3973 - Changed natural-key for
Servicemodel to[name, virtual_machine, device]. - #3973 - Changed natural-key for
VLANGroupmodel to simply[name]. - #3973 - Changed natural-key for
VLANmodel to[pk]for now. - #4004 - Changed
Prefix.typevalidation with respect to parents and children from strictly-enforced to advisory-only for 2.0. - #4004 - Changed
parentfilter onIPAddressto be exact-match by PK; the previously present filter is renamed toprefix.
Removed¶
- #2662 - Removed
DeviceType.slugfield. - #2662 - Removed
Location.slugfield. - #2662 - Removed
LocationType.slugfield. - #2662 - Removed
Note.slugfield. - #2662 - Removed
ProviderNetwork.slugfield. - #2662 - Removed
RackGroup.slugfield. - #2662 - Removed
Tag.slugfield. - #2662 - Removed
VLANGroup.slugfield. - #2662 - Removed
slugFilterSet filters from models that no longer have slugs. - #3424 - The built-in "SLAAC"
Statusobject has been removed and replaced with anIPAddress.typeof the same name. - #3424 - The built-in "DHCP"
Statusobject has been removed and replaced with anIPAddress.typeof the same name. - #3635 - Removed leftover
interfaceandvminterfacefields fromIPAddressGraphQL representation. - #3778 - Removed currently unused
app_full_width_fragment,detail-view-config,form-fields, andtable-fieldsREST API endpoints. - #3847 - Removed
ScheduledJob.job_classfield as redundant. - #3849 - Removed
ConfigContextSchema.slugfield. - #3850 - Removed VLANGroup [
location,name] uniqueness constraint. - #3941 - Removed
device, rd, nameandvirtual_machine, rd, nameuniqueness constraints onVRFDeviceAssignment. - #3941 - Removed
namespace, nameuniqueness constraint onVRF. - #3941 - Removed some overly verbose messaging in IPAM migration utilities.
Fixed¶
- #2662 - Corrected leftover "natural key slug" reference in
object_bulk_create.html. - #2662 - Fixed leftover reference to
GraphQLQuery.sluginCustomGraphQLView. - #2662 - Fixed leftover references to
slugin various detail view and edit view templates. - #2662 - Fixed leftover references to
slugin various IPAM table columns. - #2662 - Fixed various leftover references to
slugfields in the documentation. - #3424 - Fixed a typo in
AvailableIPSerializerforip_versionfield representation. - #3574 - Fixed Inability to select multiple entries on (Multiple) selection custom fields in filter.
- #3580 - Fixed a bug that prevented moving IP Addresses between Namespaces.
- #3778 - Fixed self-referential type loop in the OpenAPI schema that made Swagger UI unusable for some endpoints.
- #3782 - Fixed filename for CSV exports.
- #3847 - Fixed incorrect filter form definitions for JobHookFilterForm, JobResultFilterForm, ScheduledJobFilterForm.
- #3858 - Fixed broken dynamic filter form in legacy view.
- #3859 - Added logic to protect against defining a
GitRepository.slugthat would conflict with existing Python modules. - #3865 - Fixed erroneous algorithms used in CustomField and Relationship data migrations.
- #3879 - Fixed permission check for navigation menu item for Namespaces.
- #3885 - Fixed missing
natural_keyforObjectChangerecords. - #3889 - Fixed a bug in
ScheduledJobdata migration where it is trying to delete a non-existent key from a dictionary. - #3890 - Fixed an error that could happen during migrations if a Site and a Location both have the same
slug. - #3896 - Fixed a
KeyErrorwhen accessingObjectChangerecords for aConfigContextvia the REST API. - #3898 - Fixed several errors that could occur when defining a model's
natural_key_field_namesto include related object lookups. - #3902 - Fixed a GraphQL error when querying Interface
mac_addresswhen unset/null/empty values are present. - #3916 - Fixed custom NautobotHyperlinkedRelatedField
to_representationlogic. - #3955 - Fixed an error in dcim.0030 migration when CircuitTerminations terminated to ProviderNetworks exist.
- #3955 - Fixed an error in ipam.0031 migration when an interface had multiple IPs in the same VRF.
- #3955 - Fixed failure of ipam.0031 migration to detect when an interface has a mix of VRF IPs and non-VRF IPs.
- #3980 - Fixed a regression in the display of Tag records in the UI.
- #3998 - Fixed rendering of breadcrumbs in the 2.0 UI.
- #4005 - Added logic to catch and report errors when registering a Job to the database.
- #4005 - Added logic to Job class
@classpropertymethods to enforce correct data types.
Dependencies¶
- #3883 - Updated nautobot-ui package in next.
Documentation¶
- #2662 - Revised development best-practices documentation around the inclusion of
slugfields in models. - #3847 - Corrected out-of-date information about
class_pathin the Jobs documentation. - #3940 - Added Jobs migration docs.
- #4005 - Fixed incorrect documentation about how to register Jobs from an app.
Housekeeping¶
- #2662 - Corrected incorrect logic in generic view test
test_list_objects_filteredandtest_list_objects_unknown_filter_strict_filtering. - #3424 - Unskipped
nautobot.ipam.tests.test_forms.IPAddressFormTest - #3635 - Re-enabled and updated some GraphQL tests relating to IPAddress objects in GraphQL.
- #3867 - Fixed
node_modulesvolume mount in docker-compose. - #3876 - Fixed markdownlint command syntax.
- #3900 - Added 'invoke migration-test' and corresponding CI step.
- #3930 - Fixed inconsistent job test behavior.
- #3933 - Fixed noisy output of unit tests.
- #4071 - Fixed Docker tag syntax for pre-release workflow.
- #4078 - Fixed prerelease workflow referenced
ci_integration.ymlfile.
v2.0.0-beta.1 (2023-06-06)¶
Added¶
- #851 - Added list view with CSV import/export buttons for
CircuitTerminationobjects. - #1633 - Added
createdandlast_updatedfields on theVMInterfacemodel. When migrating to this release, these fields will default toNonefor any pre-existing instances of this model. - #2331 - Added job stdout/stderr redirection to database
JobLogEntryrecords. - #2331 - Added support to skip job logs from being written to the database.
- #2901 - Added
get_absolute_urlmethod onBaseModelwhich will attempt to resolve the detail view route for all subclassed models. - #3192 - Added a data migration to migrate existing ScheduledJob instances to support new format.
- #3203 - Added a
nautobot-server build_uicommand for building the web UI - #3237 - Added Node.JS to Docker final image, bundled
node_modulesto speed up rebuilds. - #3615 - Added toggle buttons between Legacy UI and New UI.
- #3637 - Added
pre_deletesignal to nullify the device'sprimary_ipfield/fields if its primary ips are removed from interface'sip_addressesm2m field. - #3637 - Added
pre_savesignal to catch invalid operations in manual creations ofIPAddressToInterface. - #3637 - Added
unique_togetherfor through modelIPAddressToInterface. - #3651 - Added
home_url,config_url, anddocs_urlkeys to the/api/plugins/installed-plugins/REST API endpoint. - #3679 - Added optional
apiargument toBaseModel.get_absolute_url(). - #3702 - Added basic Redis caching for
TreeModel.displayto reduce redundant queries when listing such objects. - #3708 - Added sorting support to the REST API via the
sortquery parameter. - #3713 - Added
celery_kwargsfield toJobResultandScheduledJobmodels. - #3714 - Added support for
{"value": "x"}format when writing to ChoiceFields in the REST API, making round-trip data easier. - #3715 - Added
NautobotCSVParserclass, providing the ability for the REST API to accept CSV as an input format. - #3715 - Added ability to specify a
parent_baywhen creating a Device via the REST API. - #3715 - Added
APIViewTestCases.CreateObjectViewTestCase.test_recreate_object_csvgeneric test, testing the "round-trip" capability of each API endpoint's CSV export and import. - #3715 - Added (temporary)
natural_key_field_namestoIPAddress,Prefix,RackReservation,ScheduledJob, andServicemodels. - #3721 - Added App provided model view override.
- #3722 - Added
termination_typefilter toCableFilterSet. - #3722 - Added
natural_key_slugfield to REST API serializers. - #3736 - Added App provided custom route view.
- #3741 - Added natural-key-slug information to UI detail views.
- #3754 - Added loading widget to the left of the ObjectListTable Buttons after initial data load.
- #3759 - Implemented IPAM Namespace & parenting data migrations.
- #3767 - Added
detail-view-configAPI endpoint toModelViewSetMixin. - #3804 - Added feature to redirect all add and edit views to legacy UI.
- #3840 - Added
boolreturn value forNautobot.extras.datasources.git.ensure_git_repository()to indicate whether the filesystem was changed.
Changed¶
- #1633 - The base class for all
tagsfields onPrimaryModelsubclasses is nownautobot.core.models.fields.TagsFieldrather thantaggit.managers.TaggableManager. Any apps usingPrimaryModelas a base class will likely need to generate and run a schema migration to reflect this change. - #2331 - Changed
JobLogEntry.log_levelchoices fromdefault,info,success,warning,failureto Python default logging levelsdebug,info,warning,errorandcritical. - #2331 - Changed job logging from custom log methods on the
BaseJobclass to celery'sget_task_loggerlogging implementation. - #2569 - Revamped CSV export functionality to use REST API serializers for more self-consistency and reduced boilerplate.
- #2569 - Revised the natural key for
SecretsGroupAssociationthrough-table model. - #2569 - Changed behavior of
JobLogEntry.displayREST API field to match the model behavior. - #2799 - Changed REST API versioning to default to latest instead of earliest when unspecified by the client.
- #3042 - Removed all
Nested*Serializerclasses in favor of adepth-based REST API design. - #3042 - The
?brief=TrueREST API parameter has been replaced by a new?depth=<0-10>API parameter, allowing greater control of the returned data. - #3228 - Removed
run_jobCelery task and updatedBaseJobto subclass CeleryTask. - #3449 - Renamed
Relationshipmodel attributeslugtokey. - #3449 - Renamed
Relationshipmodel attributenametolabel. - #3450 - Renamed
ComputedFieldmodel attributeslugtokey. - #3465 - Renamed IPAddress
prefix_lengthfield tomask_length. - #3465 - Made IPAddress
hostfield non-modifiable. - #3527 - Restructured navigation menus to context-centered design for 2.0.
- #3552 - Extracted data tables from upgrading-from-nautobot-v1.md into separate YAML files.
- #3586 - Changed REST API for Device and VirtualMachine to omit
config_contextby default and only include it when requested by using the?include=config_contextquery parameter. - #3607 - Changed the default
lookup_fieldforNautobotUIViewSetto"pk"instead of"slug". - #3663 - Modified
delete_buttonandedit_buttontemplate tags to lookuppkandslugwithout the need to specify the lookup key. - #3679 - Changed
BaseModelSerializerto inherit fromHyperlinkedModelSerializerinstead ofModelSerializer. This changed the REST API representation of related objects (at depth 0) from UUIDs to API hyperlinks to improve discoverability and usability of the API. - #3691 - Implemented
Meta.list_display_fieldsfor all serializers. - #3692 - Updated
JobResultmanagerstore_resultmethod to censor sensitive variables. - #3702 - Changed nested serialization to never include tags, computed fields, relationships, and other M2M fields.
- #3713 - Changed
Job.read_onlyfield to an informational field set by the job author and removed the ability for administrators to override this field. This field no longer changes the behavior of Nautobot core. - #3715 - Reworked CSV import to be based on the REST API implementation instead of custom forms and views.
- #3715 - Changed the parameters and behavior of
CSVDataFieldandCSVFileFieldin support of the new CSV import framework. - #3715 - Changed the
userparameter on the RackReservation REST API to optional; if omitted, the requesting user will now be automatically selected as the owner of any created reservations. - #3742 - Centered the LoadingWidget component in UI.
- #3742 - Lightened the color of the LoadingWidget text to gray-3.
- #3742 - Lightened the color of the skeleton component when loading tables.
- #3744 - A batch of improvements to state handling in the UI to solve loading bugs.
- #3767 - Enhanced error handling for fetcher in React UI
ObjectRetrieveView. - #3785 - Deprecated
StatusModelmixin in favor of directly including aStatusFieldas needed. - #3840 - Changed Job
class_pathproperty from<source>/<module>/<ClassName>to simply<module>.<ClassName>. - #3840 - Changed GitRepository slugs to use underscores rather than dashes so they can be used as Python module names.
- #3840 - Changed Job
module_namefor Git-derived Jobs to<git_repository_slug>.jobs.<module>. - #3840 - System-provided Jobs are now enabled by default for running.
- #3840 - Changed return signature for
Nautobot.core.utils.git.GitRepo.checkout()to include whether the filesystem was changed. - #3840 - Changed
jobfilter on JobButton, JobHook, JobResult, and ScheduledJob to be name-based rather than slug-based. - #3840 - Changed
Job.runnableproperty to not consider whether thejob_classis set, as a performance optimization. - #3840 - Changed client-side slug construction (legacy UI) to use underscores rather than dashes.
Removed¶
- #1633 - Removed
nautobot.extras.utils.is_taggable; usenautobot.core.models.utils.is_taggableinstead. - #1633 - Removed backward-compatibility with
taggit1.x Python API; instead ofobject.tags.set(tag1, tag2, tag3)you must now doobject.tags.set([tag1, tag2, tag3]). - #1721 - Removed dependency on and usage of
django-cacheops. - #2331 - Removed custom
BaseJoblogging methods_log,log,log_debug,log_success,log_info,log_warningandlog_failure. - #2331 - Removed
active_testandfailedproperties fromBaseJobclass. - #2569 - Removed
csv_headersandto_csv()from all models as they are no longer needed. - #2885 - Removed
changelog_urlfromObjectView's context. - #3228 - Removed atomic transaction from Jobs.
- #3228 - Removed support for
test_*andpost_runmethods in Jobs. - #3465 - Removed
broadcastfield from IPAddress. - #3527 - Removed
NavMenuButtonand its subclasses as they are not a part of the 2.0 UI. - #3527 - Removed
NavMenuTab.weightproperty as the menu tabs/contexts are not reorderable in 2.0. - #3623 - Removed remaining erroneous slug references from tenant.html and tenantgroup.html.
- #3651 - Removed misspelled
verisonkey from/api/plugins/installed-pluginsREST API endpoint. - #3679 - Removed explicit
urlfield declarations from most REST API serializers as they are now derived automatically. - #3713 - Removed
Job.read_only_override,JobResult.obj_type,JobResult.periodic_task_name, andJobResult.task_idfields. - #3713 - Removed
NautobotFakeRequestand associated methods, variables and logic. - #3715 - Removed
LocatableModelCSVFormMixin,RoleModelCSVFormMixin,RoleRequiredRoleModelCSVFormMixin, andStatusModelCSVFormMixinclasses, as they are no longer needed after reworking how CSV import is handled. - #3715 - Removed
bulk_create_form_classfield fromNautobotUIViewSetas it's no longer used or needed. - #3715 - Removed
model_formandwidget_attrsfields fromBulkImportViewas they are no longer used or needed. - #3840 - Removed
Job.slug,Job.source, andJob.git_repositorydatabase fields. - #3840 - Removed
sourceandslugfilters for Jobs. - #3840 - Removed
get_jobs(),get_job_classpaths(),jobs_in_directory()functions.
Fixed¶
- #3437 - Fixed the possibility of inadvertently applying the same
Tagto the same object multiple times by adding appropriate uniqueness constraints on theTaggedItemthrough table. - #3518 - Fixed an error seen when running the
extras.0061_collect_roles_from_related_apps_rolesmigration. - #3545 - Fixed a bug in Job edit view template where slug was missing, preventing creation from happening.
- #3592 - Fixed heuristic for duplicate calls to
populate_model_features_registrycausing skipped updates. - #3675 - Fixed job edit form silently failing.
- #3687 - Fixed a bug in
Prefix.reparent_ips()that was too greedy in reparenting IP addresses when child prexies were deeply nested (such as /31) - #3702 - Added some missing
select_relatedonDeviceViewSetandPrefixViewSetto improve performance. - #3714 - Fixed inability to set null via the REST API on
Interface.mac_addressandVMInterface.mac_address. - #3714 - Fixed inability to set null via the REST API on
DeviceType.front_imageandDeviceType.rear_image. - #3714 - Fixed
passwordbeing incorrectly marked as a required field when editing a User via the REST API. - #3715 - Fixed inability to set the
failover_strategyfield as unspecified/blank when creating/updatingDeviceRedundancyGroupvia the REST API. - #3715 - Fixed incorrect interim natural key definition for
DeviceandVRFmodels. - #3715 - Fixed the possibility of setting values for nonexistent custom fields via the REST API.
- #3715 - Fixed incorrect password-handling logic when creating/updating a
Uservia the REST API. - #3716 - Fixed an error when attempting to edit a user via the Nautobot admin UI.
- #3722 - Fixed incorrect filter forms on console-connections, power-connections, and interface-connections list views.
- #3729 - Fixed a bug that references a non-existent Relationship model attribute in Relationship migration file.
- #3741 - Fixed missing time-zone information on various Job-related tests in
nautobot.extras.tests.test_views. - #3741 - Fixed various cable-termination API serializers incorrectly reporting the
cablefield as writable. - #3768 - Fixed new UI homepage breaks if recent object-changes reference objects that no longer exist.
- #3785 - Fixed undesirable nullability of
statusfields to correctly match their intended usage. - #3786 - Fixed default descriptions of REST API actions in the OpenAPI schema to be more accurate.
- #3792 - Fixed logging output not being suppressed during unit and integration tests.
- #3828 - Fixed a bug caused by #3637 that prevents devices with
primary_ipfrom being deleted. - #3829 - Fixed build failure caused by registered App missing ui/index.js.
- #3833 - Fixed build failure caused by registered App missing urls.py file or a urlpatterns.
- #3840 - Removed leftover/non-functional
Sourcetab fromjob_approval_request.html. - #3864 - Fixed cases where Device.role was null, incongruent with the enforcement in the API and UI.
Dependencies¶
- #1721 - Removed dependency on
django-cacheops. - #3672 - Changed
napalmdependency to 4.x release in order to allow Netmiko 4.x to install. Dependency resolution resulted in removing the following packages:ciscoconfparse,deprecat,dnspython,loguru,toml,win32-setctime.
Documentation¶
- #3591 - Fixed a few errors in the v2.0 migration documentation.
Housekeeping¶
- #1633 - Removed monkey-patching of
taggit.managers.TaggableManager. - #3378 - Re-enabled skipped tests.
- #3618 - Fix corrupted
package-lock.jsonwhich was causing test failures. - #3650 - Updated ui 2.0 jsconfig.json to exclude
node_modulesandbuilddirectories. - #3714 - Added generic test for GET/PUT round-trip in the REST API.
- #3731 - Fixed
debugpyworkflow not working with the removal ofmanage.py. - #3737 - Fixed broken
--cache_test_fixtureswhen running tests. - #3740 - Fixed container builds failed resulting from #3731.
- #3840 - Moved test Jobs from
nautobot/extras/tests/example_jobs/test_*.pytonautobot/extras/test_jobs/*.pyto avoid unnecessary loading by theunittestrunner.
v2.0.0-alpha.3 (2023-04-13)¶
Added¶
- #3337 - Add
Namespacemodel to IPAM.
Changed¶
- #2915 - Implemented a concrete
parentrelationship fromPrefixto itself. - #3337 - Changed Prefix and other model uniqueness to center around Namespace model.
- #3337 - TODO: Update with many more changes.
- #3439 - Changed the GraphQL
execute_saved_queryfunction's argument fromsaved_query_slugtosaved_query_name. - #3523 - Renamed
nat_outsidefield on IPAddress serializer tonat_outside_listfor self-consistency.
Removed¶
- #3439 - Removed
slugfield from many database models. - #3523 - Removed
nat_outsidegetter-setter in IPAddress model.
Dependencies¶
- #2316 - Dropped support for Python 3.7. Python 3.8 is now the minimum version required by Nautobot.
- #2316 - Updated
django-auth-ldapdependency to~4.2.0. - #2316 - Updated
django-cors-headersdependency to~3.14.0. - #2316 - Updated
django-filterdependency to~23.1. - #2316 - Updated
django-health-checkdependency to~3.17.0. - #2316 - Updated
django-tables2dependency to~2.5.3. - #2316 - Updated
django-tree-queriesdependency to~0.14.0. - #2316 - Removed direct dependency on
importlib-metadata. - #2316 - Updated
pillowdependency to~9.5.0. - #2316 - Updated
prometheus-clientdependency to~0.16.0. - #2316 - Updated
social-auth-coredependency to~4.4.1. - #2316 - Updated
social-auth-app-djangodependency to~5.2.0. - #3525 - Added explicit dependency on
packagingthat had been inadvertently omitted.
Housekeeping¶
- #2316 - Updated various development-only dependencies to the latest available versions.
v2.0.0-alpha.2 (2023-03-29)¶
Added¶
- #2900 - Added natural-key support to most Nautobot models, inspired by the
django-natural-keyslibrary. - #2957 - Added Location constraints for objects (CircuitTermination, Device, PowerPanel, PowerFeed, RackGroup, Rack, Prefix, VLAN, VLANGroup, Cluster).
- #2957 - Added Region and Site data migration to Locations for existing ConfigContext instances.
- #3066 - Added
ForeignKeyWithAutoRelatedNamehelper class. - #3154 - Added ability for
tagsfilters to filter by UUID as well as by slug. - #3185 - Added missing user filterset fields.
- #3222 - Added Site and Region data migration for ConfigContext class and ensured that "Site" LocationType allows the correct ContentTypes.
- #3256 - Added Site and Region data migration for ComputedFields, CustomFields, CustomLinks, ExportTemplates, ImageAttachments, JobHooks, Notes, Relationships, Webhooks, Statuses and Tags
- #3283 - Added Site and Region migration to Location for filter data of DynamicGroups.
- #3360 - Added an alternate approach to updating model feature registry without having to decorate a model with
@extras_features. - #3364 - Added FK fields
migrated_locationto Site and Region models before data migration is applied. - #3403 - Added support for Nautobot Apps to provide Django Constance Fields for the settings.
- #3418 - Added ObjectPermission Data Migration from Region/Site to Location.
Changed¶
- #824 - Renamed
slugfield tokeyon CustomField model class. - #824 - Changed validation of CustomField
keyto enforce that it is valid as a GraphQL identifier. - #951 - The
nautobot-server nbshellcommand is now based onshell_plusfromdjango-extensions. - #1362 - Added
typefield toPrefix, replacing "Container" status andis_poolfield. - #2076 - Changed the
createdfield of all models from a DateField to a DateTimeField for added granularity. Preexisting records will show as created at midnight UTC on their original creation date. - #2611 - Changed
Jobmodel uniqueness constraints andslugfield. - #2806 - Enhanced VLAN
available_on_devicefilter to permit specifying multiple Devices. - #3066 - Changed
related_namevalues for path endpoints onCablePathfor consistency and readability (dcim_interface_relatedtointerfaces,circuits_circuittermination_relatedtocircuit_terminations, etc.) - #3066 - Changed
related_namevalues for device components onDevicefor consistency and readability (consoleportstoconsole_ports,devicebaystodevice_bays, etc.) - #3066 - Changed
related_namevalues for device component templates onDeviceTypefor consistency and readability (consoleporttemplatestoconsole_port_templates,devicebaytemplatestodevice_bay_templates, etc.) - #3066 - Changed
DeviceType.instancestodevicesand renamed the corresponding query filters. - #3066 - Changed
DeviceRedundancyGroup.memberstodevices. - #3066 - Changed
FrontPortTemplate.rear_porttorear_port_template. - #3066 - Changed
Location.powerpanelstopower_panels. - #3066 - Changed
PowerOutletTemplate.power_porttopower_port_template. - #3066 - Changed
PowerPanel.powerfeedstopower_feeds. - #3066 - Changed
PowerPort.poweroutletstopower_outlets. - #3066 - Changed
PowerPortTemplate.poweroutlet_templatestopower_outlet_templates. - #3066 - Changed
Rack.powerfeed_settopower_feeds. - #3066 - Changed
Rack.groupandRack.reservationstorack_groupandrack_reservationsand renamed the corresponding query filters. - #3066 - Changed
RackGroup.powerpanel_settopower_panels. - #3066 - Changed
RearPort.frontportstofront_ports. - #3066 - Changed
RearPortTemplate.frontport_templatestofront_port_templates. - #3066 - Changed
SecretsGroup.device_setandSecretsGroup.deviceredundancygroup_settodevicesanddevice_redundancy_groups. - #3066 - Changed
Tenant.rackreservationstorack_reservations. - #3066 - Changed
User.rackreservation_settorack_reservations. - #3066 - Changed REST API field on
Interfacefromcount_ipaddressestoip_address_count. - #3066 - Changed REST API fields on
Manufacturerfromdevicetype_countandinventoryitem_counttodevice_type_countandinventory_item_count. - #3066 - Changed REST API field on
Platformfromvirtualmachine_counttovirtual_machine_count. - #3066 - Changed REST API field on
PowerPanelfrompowerfeed_counttopower_feed_count. - #3066 - Changed REST API field on
Rackfrompowerfeed_counttopower_feed_count. - #3066 - Changed
RackReservationgroupfilter torack_group. - #3154 - Renamed various
tagfilters totagsfor self-consistency. - #3160 - Changed logger names to use
__name__instead of explicit module names. - #3215 - Changed representation of related Status objects in the REST API to use a NestedStatusSerializer instead of presenting as enums.
- #3236 - Changed
InterfaceandVMInterfacerelationship toIPAddressto many-to-many instead of one-to-many. - #3262 - Changed extras FKs and related names.
- #3266 - Changed erroneous attribute "type" to correct "circuit_type" in circuit-related templates.
- #3302 - Migrated
Aggregatemodel toPrefixwith type set to "Container". - #3351 - Changed extras abstract model ForeignKeys to use ForeignKeyWithAutoRelatedName.
- #3354 - Synced in fixes from 1.5.x LTM branch up through v1.5.11.
Removed¶
- #824 - Removed
namefield from CustomField model class. - #1634 - Removed unnecessary legacy
manage.pyfile from Nautobot repository. - #2521 - Removed support for storing Git repository credentials (username/token) in the Nautobot database. Use Secrets instead.
- #2957 - Removed Site constraints for model classes (CircuitTermination, Device, Location, PowerPanel, PowerFeed, RackGroup, Rack, Prefix, VLAN, VLANGroup, Cluster).
- #2957 - Removed
regionsandsitesattributes from ConfigContext model class. - #2957 - Removed
regionandsiterelated fields from Serializers for aforementioned model classes. - #2957 - Removed
regionandsiterelated fields from Forms for aforementioned model classes. - #2957 - Removed
regionandsiterelated UI and API Endpoints for aforementioned model classes. - #2957 - Removed
regionandsitecolumns from Tables for aforementioned model classes. - #2958 - Removed Region and Site factories, filtersets, forms, factories, models, navigation menu items, serializers, tables, templates, tests and urls.
- #3224 - Removed support for Nautobot "1.x" REST API versions. The minimum supported REST API version is now "2.0".
- #3302 - Removed
Aggregateand migrated all existing instances toPrefix.
Fixed¶
- #633 - Fixed job result not updating when job hard time limit is reached.
- #1362 - Fixed migrations for
Prefix.type. - #1422 - Improved OpenAPI schema representation of polymorphic fields such as
cable_peer,assigned_object, etc. - #2806 - Fixed some issues with initialization and updating of the dynamic ("advanced") filter form.
- #3066 - Fixed incorrect
field_classwhen filteringFloatFieldandDecimalFieldmodel fields. - #3066 - Fixed inability to provide non-integer values when filtering on
FloatFieldandDecimalFieldfields in GraphQL. - #3066 - Fixed inability to specify partial substrings in the UI when filtering by MAC address.
- #3154 - Fixed incorrect initialization of
TagFilterwhen auto-attached to a FilterSet. - #3164 - Merged
TaskResultfromdjango-celery-resultsintoJobResult. - #3291 - Fixed inheritance and
RoleFielddefinition onRolemodel mixins. - #3342 - Fixed BaseFilterSet not using multiple choice filters for CharFields with choices.
- #3457 - Fixed bug preventing scheduled job from running.
Dependencies¶
- #2521 - Removed dependency on
django-cryptography. - #2524 - Removed no-longer-used
drf-yasgdependency.
Housekeeping¶
- #3255 - Added
--cache-test-fixturescommand line argument to Nautobot unit and integration tests. - #3233 - Removed
CeleryTestCaseand associated calling code as it is no longer needed.
v2.0.0-alpha.1 (2023-01-31)¶
Added¶
- #1731 - Added missing filters to
circuitsapp. - #1733 - Added support for filtering on many more fields to the
TenantandTenantGroupfiltersets. - #2954 - Added fields (
contact_name,latitude, etc.) fromSitemodel toLocationmodel to prepare for merging all sites into locations. - #2955 - Added "Region" and "Site"
LocationTypesand their respective locations based on existingSiteandRegioninstances. - #3132 - Added the ability for apps to register their models for inclusion in the global Nautobot search.
Changed¶
- #510 - The
Region,RackGroup,TenantGroup, andInventoryItemmodels are now based ondjango-tree-queriesinstead ofdjango-mptt. This does change the API for certain tree operations on these models, for exampleget_ancestors()is nowancestors()andget_descendants()is nowdescendants(). - #510 - The UI and REST API for
Region,RackGroup, andTenantGroupnow provide only the related count of objects (e.g.site_countforRegion) that are directly related to each instance. Formerly they provided a cumulative total including objects related to its descendants as well. - #510 - Renamed field
_depthtotree_depthin the REST API forRegion,RackGroup,TenantGroup, andInventoryItem. - #510 - Renamed InventoryItem database relation
child_itemsand filter fieldschild_itemsandhas_child_itemstochildrenandhas_childrenrespectively. - #2163 -
JobLogEntry.log_object,JobLogEntry.absolute_url,ScheduledJob.queue, andWebHook.ca_file_pathno longer permit null database values; use""instead if needed. - #2822 - Collapsed
DeviceRole,RackRole, IPAMRolemodel andIPAddressRoleChoicesinto a single genericRolemodel. - #2721 - Collapsed
nautobot.utilitiesintonautobot.core. Refer to the 2.0 migration guide for details. - #2788 - Changed REST framework allowed versions logic to support 1.2-1.5 and 2.0+.
- #2809 - Renamed
tagfilter onTenantFilterSettotagssame as elsewhere. - #2872 - Refactored imports in
utilitiesapp to follow new code style. - #2955 - Changed
CircuitTermination,Device,PowerPanel,RackGroup,Rack,Prefix,VLANGroup,VLAN,Clusterinstances associated with existingSitemodel instances to use the newly created correspondingLocationsofLocationType"Site". - #2993 - Implemented initial database backend for Celery task results.
- #3068 - Renamed fields on
Circuitmodel:typetocircuit_type,terminationstocircuit_terminations,termination_atocircuit_termination_a, andtermination_ztocircuit_termination_z. - #3068 - Renamed reverse-relation
circuitterminationtocircuit_terminationson theCablePathmodel. - #3068 - Renamed
groupfield tovlan_groupon VLAN model, renamedipaddressestoip_addressesonServicemodel. - #3068 - Renamed
groupfield totenant_grouponTenantmodel. - #3069 - Renamed foreign key fields and related names in Virtualization and DCIM apps to follow a common naming convention. See v2 upgrade guide for full list of changes.
Removed¶
- #510 - Removed dependency on
django-mptt. Models (Region,RackGroup,TenantGroup,InventoryItem) that previously were based on MPTT are now implemented usingdjango-tree-queriesinstead. - #1731 - Removed redundant filters from
circuitsapp. - #2163 - Removed unused
NullableCharField,NullableCharFieldFilterandMACAddressField(not to be confused withMACAddressCharField, which remains) classes. - #2523 - Removed
django-rqdependency and support for RQ workers. - #2815 - Removed
pycryptodomedependency as it is no longer used. - #2993 - Removed
NAUTOBOT_CELERY_RESULT_BACKENDenvironment variable used to customize where Celery stores task results. - #2993 - Removed optional settings documentation for
CELERY_RESULT_BACKENDas it is no longer user-serviceable. - #2993 - Removed optional settings documentation for
CELERY_RESULT_BACKEND_TRANSPORT_OPTIONSas it is no longer user-serviceable. - #3130 - Removed
CSS_CLASSESdefinitions from legacyChoiceSets.
Fixed¶
- #1982 - Fixed a UI presentation/validation issue with dynamic-groups using foreign-key filters that aren't explicitly defined in the corresponding FilterForm.
- #2808 - Fixed incorrectly named filters in
circuitsapp. - #3126 - Fixed
Interfacenot raising exception when adding aVLANfrom a differentSiteintagged_vlans. - #3167 - Fixed
ObjectChangerecords not being migrated andlegacy_role__namenot being a property inRolemigrations.
Dependencies¶
- #2771 - Updated
jsonschemaversion to~4.17.0. - #2883 - Updated
django-taggitto3.1.0. - #2942 - Updated
django-tree-queriesto0.13.0. - #2943 - Updated dependency
richto~12.6.0. - #3027 - Updated dependencies
prometheus-client,django-storages,drf-spectacular,black,django-debug-toolbar,mkdocstrings,mkdocstrings-python,pylint,requests,selenium,watchdog.
Documentation¶
- #204 - Added style guide documentation for importing python modules in Nautobot.
Housekeeping¶
- #204 - Changed imports to use module namespaces in
utilities/filters.py. - #2674 - Updated development dependency
blackto~22.10.0. - #2803 - Updated
mkdocs-include-markdown-pluginto3.9.1. - #2844 - Updated development dependency
mkdocstrings-pythonto 0.8.0. - #3153 - Made integration test
CableConnectFormTestCase.test_js_functionalitymore resilient and less prone to erroneous failures. - #3177 - Updated
VLANFactoryto generate longer and more "realistic"VLANnames. - #3177 - Fixed a spurious failure in
BulkEditObjectsViewTestCase.test_bulk_edit_objects_with_constrained_permission.