diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 6ee058e89..419af2c7a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -17,7 +17,7 @@ body: What version of NetBox are you currently running? (If you don't have access to the most recent NetBox release, consider testing on our [demo instance](https://demo.netbox.dev/) before opening a bug report to see if your issue has already been addressed.) - placeholder: v2.11.5 + placeholder: v2.11.6 validations: required: true - type: dropdown diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml index c18fc3a1a..80cad1a52 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yaml +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -14,7 +14,7 @@ body: attributes: label: NetBox version description: What version of NetBox are you currently running? - placeholder: v2.11.5 + placeholder: v2.11.6 validations: required: true - type: dropdown diff --git a/docs/release-notes/version-2.11.md b/docs/release-notes/version-2.11.md index db773e2bd..69df4d614 100644 --- a/docs/release-notes/version-2.11.md +++ b/docs/release-notes/version-2.11.md @@ -1,5 +1,13 @@ # NetBox v2.11 +## v2.11.6 (2021-06-04) + +### Bug Fixes + +* [#6544](https://github.com/netbox-community/netbox/issues/6544) - Fix migration error when upgrading with VRF(s) defined + +--- + ## v2.11.5 (2021-06-04) **NOTE:** This release includes a database migration that calculates and annotates prefix depth. It may impose a noticeable delay on the upgrade process: Users should anticipate roughly one minute of delay per 100 thousand prefixes being updated. diff --git a/netbox/ipam/management/commands/rebuild_prefixes.py b/netbox/ipam/management/commands/rebuild_prefixes.py index 5d614b834..f84ff3ea4 100644 --- a/netbox/ipam/management/commands/rebuild_prefixes.py +++ b/netbox/ipam/management/commands/rebuild_prefixes.py @@ -22,6 +22,6 @@ class Command(BaseCommand): for vrf in VRF.objects.all(): vrf_count = Prefix.objects.filter(vrf=vrf).count() self.stdout.write(f'VRF {vrf}: {vrf_count} prefixes...') - rebuild_prefixes(vrf) + rebuild_prefixes(vrf.pk) self.stdout.write(self.style.SUCCESS('Finished.')) diff --git a/netbox/ipam/migrations/0048_prefix_populate_depth_children.py b/netbox/ipam/migrations/0048_prefix_populate_depth_children.py index 279f899f6..5ec448ee1 100644 --- a/netbox/ipam/migrations/0048_prefix_populate_depth_children.py +++ b/netbox/ipam/migrations/0048_prefix_populate_depth_children.py @@ -20,7 +20,7 @@ def populate_prefix_hierarchy(apps, schema_editor): # Iterate through all VRFs, rebuilding each for vrf in VRF.objects.all(): - rebuild_prefixes(vrf) + rebuild_prefixes(vrf.pk) class Migration(migrations.Migration): diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 2f8af0538..d0fce6628 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -16,7 +16,7 @@ from django.core.validators import URLValidator # Environment setup # -VERSION = '2.11.5' +VERSION = '2.11.6' # Hostname HOSTNAME = platform.node()