1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #6544: Fix migration error when upgrading with VRF(s) defined

This commit is contained in:
jeremystretch
2021-06-04 10:53:13 -04:00
parent 0783d57459
commit 5e08b2be37
4 changed files with 11 additions and 3 deletions

View File

@ -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.'))