feat: switch stacks per member device, optional AP sites with mandatory tenant

- Detect stacks (Aruba CX VSF, ArubaOS-Switch stacking/VSF, Comware IRF) from
  the configuration; new "Stack" tab assigns a NetBox device per member
  (suggested from virtual chassis positions, stored per switch); ports go to
  their member's device, LAGs and VLAN interfaces stay on the switch device
- Access points: site is optional with a default site for new APs; tenant is
  mandatory and can be chosen per Sophos site; new tenant column
- Empty states no longer get squeezed in small cards

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-02 13:08:30 +01:00
1 parent f400795cb5
commit 8d2bbafc8d
9 files changed
+469 -91

No files matched your search

+16
View File
@@ -255,6 +255,22 @@ class EmptyState(QWidget):
layout.addSpacing(6)
layout.addLayout(buttons)
layout.addStretch(2)
layout.setContentsMargins(24, 16, 24, 16)
def minimumSizeHint(self):
# Word-wrapped labels report almost no minimum height, so a small card
# would squeeze icon, title and text on top of each other.
width = max(self.width(), 320) - 48
height = 32 + 56 + self.title_label.heightForWidth(width) + self.text_label.heightForWidth(min(width, 520))
height += 2 * 10
if self.action is not None:
height += 16 + self.action.sizeHint().height()
return QSize(260, height)
def resizeEvent(self, event):
super().resizeEvent(event)
if event.size().width() != event.oldSize().width():
self.updateGeometry()
def set_text(self, title=None, text=None):
if title is not None: