fix: retrace existing patchpanel cable paths

This commit is contained in:
2026-08-06 15:38:06 +02:00
parent e74d8fba31
commit 8c6c48531e
9 changed files with 119 additions and 22 deletions
@@ -0,0 +1,15 @@
from django.core.management.base import BaseCommand
from netbox_utilities.patchpanel import repair_existing_patchpanels
class Command(BaseCommand):
help = "Repair front/rear mappings and cable paths for all devices with the Patchpanel role"
def handle(self, *args, **options):
device_count, mapping_count = repair_existing_patchpanels()
self.stdout.write(
self.style.SUCCESS(
f"Repaired {mapping_count} front/rear mappings on {device_count} Patchpanel devices."
)
)