feat: map hypervisor clusters to NetBox clusters automatically

- Read the vCenter/ESXi compute resource and the Proxmox cluster name
  (node name when standalone) for every VM
- Match each hypervisor cluster to a NetBox cluster by name, normalized
  name or unique similarity; remember manual choices per profile and
  offer to create missing clusters (with cluster type)
- Import wizard: per-cluster mapping table instead of a single cluster,
  tenant prefilled from the mapped clusters, review shows the mapping
- Show the hypervisor cluster in the VM table

fix: graphic glitches
- Empty state text no longer clipped by the buttons
- Combo boxes open a plain drop-down list instead of the overlay popup
- Status bar badges keep their height and no longer get cut off

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-12 15:24:00 +02:00
1 parent 4878275f2a
commit c3b5fb547e
12 files changed
+300 -50

No files matched your search

+2
View File
@@ -20,6 +20,7 @@ def test_roundtrip_encrypts_secrets(tmp_path):
"token_secret": "geheim", "enabled": True}],
"switches": [{"id": "w1", "name": "sw1", "device_id": 5, "platform": "auto", "host": "10.0.0.1",
"port": 22, "username": "admin", "password": "pw", "enabled": True, "_runtime": "x"}],
"cluster_map": {"s1:pve-cluster": "PVE-Prod"},
}
}
settings = dict(DEFAULT_SETTINGS, theme="dark")
@@ -35,6 +36,7 @@ def test_roundtrip_encrypts_secrets(tmp_path):
assert loaded["Kunde A"]["netbox_token"] == "token-123"
assert loaded["Kunde A"]["sources"][0]["token_secret"] == "geheim"
assert loaded["Kunde A"]["switches"][0]["password"] == "pw"
assert loaded["Kunde A"]["cluster_map"] == {"s1:pve-cluster": "PVE-Prod"}
def test_unreadable_secret_does_not_block_loading(tmp_path):