feat: map switch VLANs across the tenant group, custom name and tenant for new VLANs

- Match switch VLANs to NetBox VLANs of the switch's tenant group by VID;
  own tenant, site and similar names decide between several candidates
- Review dialog: choose the NetBox VLAN per VID, skip it or create it with a
  custom name and a tenant of the tenant group
- Never create a VLAN twice when "create new" stays stored in the profile

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-30 14:18:09 +01:00
1 parent 535a5e9699
commit 29d3724a7f
5 files changed
+232 -49

No files matched your search

+1 -1
View File
@@ -429,7 +429,7 @@ class Actions:
needs_review = any(
any(entry["method"] not in ("name", "new") or (entry["method"] == "new" and entry["physical"])
for entry in item["interfaces"]) or (create_cables and item["neighbors"])
or item["networks"] or any(not vlan["netbox_name"] for vlan in item["vlans"])
or item["networks"] or any(vlan["method"] != "vid" for vlan in item["vlans"])
for _switch, item in reviewable)
def ask():