fix: assign only VLANs of the device's site; show notes prominently
- VLANs of another site stay in the label but are not assigned to ports (NetBox rejects them); one note per device and VLAN instead of an error per port - Preview shows a notes badge and expands switches with notes; notes are also written to the log after the transfer Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d853f08445
commit
dfe985bb9e
4 files changed
+57
-8
No files matched your search
@@ -530,6 +530,8 @@ class Actions:
|
||||
update_cables=update_cables)
|
||||
for error in report["errors"]:
|
||||
ctx.log(f"{switch['name']}: {error}", "error")
|
||||
for note in report.get("notes", []):
|
||||
ctx.log(f"{switch['name']}: {note}", "warning")
|
||||
reports.append((switch, report))
|
||||
return reports
|
||||
|
||||
|
||||
Reference in new issue
Block a user