[PR #1575] [MERGED] Release v2.2.0 #12229

Closed
opened 2025-12-29 22:20:22 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/1575
Author: @jeremystretch
Created: 10/12/2017
Status: Merged
Merged: 10/12/2017
Merged by: @jeremystretch

Base: masterHead: develop


📝 Commits (10+)

  • fbc5e74 Allow import/export of regions (#1347)
  • beb9155 Allow import/export of rack groups (#1347)
  • f30fa92 Allow import/export of manufacturers (#1347)
  • 4544893 Allow import/export of device types (#1347)
  • d06813f Initial work on virtualization support (#142)
  • b67e3ff Implemented initial virtualization API
  • 3009863 Merge branch 'develop' into virtualization
  • 4ef5550 Updates for v2.1.3 and expanded VirtualMachine model
  • 9acd792 Added virtualization filters
  • a02055e Reworked relationship between devices and clusters

📊 Changes

154 files changed (+6319 additions, -1315 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 .travis.yml (+6 -10)
📝 docs/api/overview.md (+35 -4)
📝 docs/configuration/optional-settings.md (+9 -9)
📝 docs/data-model/ipam.md (+1 -1)
docs/data-model/virtualization.md (+29 -0)
docs/development/utility-views.md (+53 -0)
📝 docs/index.md (+2 -1)
📝 docs/installation/netbox.md (+21 -11)
📝 docs/installation/postgresql.md (+20 -11)
docs/miscellaneous/reports.md (+129 -0)
📝 docs/miscellaneous/shell.md (+0 -0)
📝 mkdocs.yml (+6 -2)
📝 netbox/circuits/api/urls.py (+3 -0)
📝 netbox/circuits/api/views.py (+11 -1)
📝 netbox/circuits/forms.py (+11 -0)
📝 netbox/circuits/urls.py (+1 -0)
📝 netbox/circuits/views.py (+11 -4)
📝 netbox/dcim/api/serializers.py (+18 -7)
📝 netbox/dcim/api/urls.py (+3 -0)

...and 80 more files

📄 Description

Note: This release requires PostgreSQL 9.4 or higher. Do not attempt to upgrade unless you are running at least PostgreSQL 9.4.

Note: The release replaces the deprecated pycrypto library with pycryptodome. The upgrade script has been extended to automatically uninstall the old library, but please verify your installed packages with pip freeze | grep pycrypto if you run into problems.

New Features

Virtual Machines and Clusters (#142)

Our second-most popular feature request has arrived! NetBox now supports the creation of virtual machines, which can be assigned virtual interfaces and IP addresses. VMs are arranged into clusters, each of which has a type and (optionally) a group.

Custom Validation Reports (#1511)

Users can now create custom reports which are run to validate data in NetBox. Reports work very similar to Python unit tests: Each report inherits from NetBox's Report class and contains one or more test method. Reports can be run and retrieved via the web UI, API, or CLI. See the docs for more info.

Enhancements

  • #494 - Include asset tag in device info pop-up on rack elevation
  • #1444 - Added a serial field to the rack model
  • #1479 - Added an IP address role for CARP
  • #1506 - Extended rack facility ID field from 30 to 50 characters
  • #1510 - Added ability to search by name when adding devices to a cluster
  • #1527 - Replace deprecated pycrypto library with pycryptodome
  • #1551 - Added API endpoints listing static field choices for each app
  • #1556 - Added CPAK, CFP2, and CFP4 100GE interface form factors
  • Added CSV import views for all object types

Bug Fixes

  • #1550 - Corrected interface connections link in navigation menu
  • #1554 - Don't require form_factor when creating an interface assigned to a virtual machine
  • #1557 - Added filtering for virtual machine interfaces
  • #1567 - Prompt user for session key when importing secrets

API Changes

  • Introduced the virtualization app and its associated endpoints at /api/virtualization
  • Added the /api/extras/reports endpoint for fetching and running reports
  • The ipam.Service and dcim.Interface models now have a virtual_machine field in addition to the device field. Only one of the two fields may be defined for each object
  • Added a vm_role field to dcim.DeviceRole, which indicates whether a role is suitable for assigned to a virtual machine
  • Added a serial field to 'dcim.Rack` for serial numbers
  • Each app now has a _choices endpoint, which lists the available options for all model field with static choices (e.g. interface form factors)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/1575 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 10/12/2017 **Status:** ✅ Merged **Merged:** 10/12/2017 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `master` ← **Head:** `develop` --- ### 📝 Commits (10+) - [`fbc5e74`](https://github.com/netbox-community/netbox/commit/fbc5e74318bd58b3bcb0cdec78627cb76a4df5ef) Allow import/export of regions (#1347) - [`beb9155`](https://github.com/netbox-community/netbox/commit/beb91559e5e2215c671c3ff00e247a86540bcee9) Allow import/export of rack groups (#1347) - [`f30fa92`](https://github.com/netbox-community/netbox/commit/f30fa925eaa2f562a65f88319aa8681116436867) Allow import/export of manufacturers (#1347) - [`4544893`](https://github.com/netbox-community/netbox/commit/4544893b4cbf3301ee66b3dbc79f5cbf6217ba77) Allow import/export of device types (#1347) - [`d06813f`](https://github.com/netbox-community/netbox/commit/d06813f52823459e57453b9ce593bf6c60f0e57b) Initial work on virtualization support (#142) - [`b67e3ff`](https://github.com/netbox-community/netbox/commit/b67e3ff9576f5d2c4c72af1eeb1b8494b977e773) Implemented initial virtualization API - [`3009863`](https://github.com/netbox-community/netbox/commit/300986387735811f9a9865ae2540846236b026f3) Merge branch 'develop' into virtualization - [`4ef5550`](https://github.com/netbox-community/netbox/commit/4ef55502b40d63e91c1db1eb3243b55709ef7ce7) Updates for v2.1.3 and expanded VirtualMachine model - [`9acd792`](https://github.com/netbox-community/netbox/commit/9acd792abe042f6797300f05a2eef4e5964b21c3) Added virtualization filters - [`a02055e`](https://github.com/netbox-community/netbox/commit/a02055e9b578eb60e161acc1064323604c598cf4) Reworked relationship between devices and clusters ### 📊 Changes **154 files changed** (+6319 additions, -1315 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `.travis.yml` (+6 -10) 📝 `docs/api/overview.md` (+35 -4) 📝 `docs/configuration/optional-settings.md` (+9 -9) 📝 `docs/data-model/ipam.md` (+1 -1) ➕ `docs/data-model/virtualization.md` (+29 -0) ➕ `docs/development/utility-views.md` (+53 -0) 📝 `docs/index.md` (+2 -1) 📝 `docs/installation/netbox.md` (+21 -11) 📝 `docs/installation/postgresql.md` (+20 -11) ➕ `docs/miscellaneous/reports.md` (+129 -0) 📝 `docs/miscellaneous/shell.md` (+0 -0) 📝 `mkdocs.yml` (+6 -2) 📝 `netbox/circuits/api/urls.py` (+3 -0) 📝 `netbox/circuits/api/views.py` (+11 -1) 📝 `netbox/circuits/forms.py` (+11 -0) 📝 `netbox/circuits/urls.py` (+1 -0) 📝 `netbox/circuits/views.py` (+11 -4) 📝 `netbox/dcim/api/serializers.py` (+18 -7) 📝 `netbox/dcim/api/urls.py` (+3 -0) _...and 80 more files_ </details> ### 📄 Description **Note:** This release requires PostgreSQL 9.4 or higher. Do not attempt to upgrade unless you are running at least PostgreSQL 9.4. **Note:** The release replaces the deprecated pycrypto library with [pycryptodome](https://github.com/Legrandin/pycryptodome). The upgrade script has been extended to automatically uninstall the old library, but please verify your installed packages with `pip freeze | grep pycrypto` if you run into problems. ## New Features ### Virtual Machines and Clusters ([#142](https://github.com/digitalocean/netbox/issues/142)) Our second-most popular feature request has arrived! NetBox now supports the creation of virtual machines, which can be assigned virtual interfaces and IP addresses. VMs are arranged into clusters, each of which has a type and (optionally) a group. ### Custom Validation Reports ([#1511](https://github.com/digitalocean/netbox/issues/1511)) Users can now create custom reports which are run to validate data in NetBox. Reports work very similar to Python unit tests: Each report inherits from NetBox's Report class and contains one or more test method. Reports can be run and retrieved via the web UI, API, or CLI. See [the docs](http://netbox.readthedocs.io/en/stable/miscellaneous/reports/) for more info. ## Enhancements * [#494](https://github.com/digitalocean/netbox/issues/494) - Include asset tag in device info pop-up on rack elevation * [#1444](https://github.com/digitalocean/netbox/issues/1444) - Added a `serial` field to the rack model * [#1479](https://github.com/digitalocean/netbox/issues/1479) - Added an IP address role for CARP * [#1506](https://github.com/digitalocean/netbox/issues/1506) - Extended rack facility ID field from 30 to 50 characters * [#1510](https://github.com/digitalocean/netbox/issues/1510) - Added ability to search by name when adding devices to a cluster * [#1527](https://github.com/digitalocean/netbox/issues/1527) - Replace deprecated pycrypto library with pycryptodome * [#1551](https://github.com/digitalocean/netbox/issues/1551) - Added API endpoints listing static field choices for each app * [#1556](https://github.com/digitalocean/netbox/issues/1556) - Added CPAK, CFP2, and CFP4 100GE interface form factors * Added CSV import views for all object types ## Bug Fixes * [#1550](https://github.com/digitalocean/netbox/issues/1550) - Corrected interface connections link in navigation menu * [#1554](https://github.com/digitalocean/netbox/issues/1554) - Don't require form_factor when creating an interface assigned to a virtual machine * [#1557](https://github.com/digitalocean/netbox/issues/1557) - Added filtering for virtual machine interfaces * [#1567](https://github.com/digitalocean/netbox/issues/1567) - Prompt user for session key when importing secrets ## API Changes * Introduced the virtualization app and its associated endpoints at `/api/virtualization` * Added the `/api/extras/reports` endpoint for fetching and running reports * The `ipam.Service` and `dcim.Interface` models now have a `virtual_machine` field in addition to the `device` field. Only one of the two fields may be defined for each object * Added a `vm_role` field to `dcim.DeviceRole`, which indicates whether a role is suitable for assigned to a virtual machine * Added a `serial` field to 'dcim.Rack` for serial numbers * Each app now has a `_choices` endpoint, which lists the available options for all model field with static choices (e.g. interface form factors) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:20:22 +01:00
adam closed this issue 2025-12-29 22:20:23 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12229