feat: choose the far-end interface of a cable in the review dialog

The neighbor tab gets a "Nachbar-Schnittstelle" column with the cable targets
of the neighbor device (no wireless interfaces) and the automatic choice;
the selection is stored per switch as neighbor_interfaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-05 16:50:33 +01:00
1 parent 144e5f9eb8
commit fc503bd7d3
5 files changed
+133 -16

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ from netbox_sync.core.config import known_hosts_path
from netbox_sync.core.netbox import NetBoxError, related_id, related_name
from netbox_sync.core.switches import (
PLATFORMS,
cable_targets,
describe_snapshot,
discover_switch,
plan_switch_sync,
@@ -525,7 +526,8 @@ class Actions:
# Started after the planning task has finished, so the next
# task is not rejected as "still busy".
if needs_review:
dialog = SwitchMappingDialog(self.window, reviewable, create_cables)
dialog = SwitchMappingDialog(self.window, reviewable, create_cables,
interface_loader=lambda device_id: cable_targets(nb, device_id))
if not dialog.exec():
return
stored = {switch["id"]: switch for switch in self.state.switches}