From 2092f4162406eee0f55faa3d50f3cd3d1df169a9 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 5 Nov 2026 15:04:59 +0100 Subject: [PATCH] fix: SSH to older switches offering only ssh-rsa/ssh-dss host keys; split switch result filters into two rows Paramiko 4+ removed ssh-rsa (SHA-1) and ssh-dss; pin to 3.x so switches like the LANCOM GS-2326P+ can be reached again. Co-Authored-By: Claude Opus 5.5 --- netbox_sync/ui/pages/switches.py | 14 ++++++++++---- requirements.txt | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/netbox_sync/ui/pages/switches.py b/netbox_sync/ui/pages/switches.py index 707a13e..e84be65 100644 --- a/netbox_sync/ui/pages/switches.py +++ b/netbox_sync/ui/pages/switches.py @@ -109,15 +109,21 @@ class SwitchesPage(Page): tooltip="Hängt die laufende Konfiguration als Textdatei an das NetBox-Gerät " "(Plugin netbox-attachments). Passwörter, Schlüssel und Communities " "werden entfernt; ein neuer Anhang entsteht nur bei Änderungen.") + # Two rows: filters for the table, then the options of the NetBox transfer. + filters.setSpacing(12) filters.addWidget(self.search, 2) filters.addWidget(self.switch_filter, 1) filters.addWidget(self.only_up) filters.addWidget(self.only_neighbors) - filters.addStretch(1) - filters.addWidget(self.cables_option) - filters.addWidget(self.update_cables_option) - filters.addWidget(self.backup_option) result_card.add(filters) + options = QHBoxLayout() + options.setSpacing(16) + options.addWidget(label("Übertragen:", muted=True)) + options.addWidget(self.cables_option) + options.addWidget(self.update_cables_option) + options.addWidget(self.backup_option) + options.addStretch(1) + result_card.add(options) result_columns = [ Column("switch", "Switch", 140), Column("name", "Schnittstelle", 150), diff --git a/requirements.txt b/requirements.txt index 3267182..b9881e9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,5 @@ PySide6-Essentials>=6.7 pynetbox>=7.4 pyvmomi>=8.0 requests>=2.31 -paramiko>=3.4 +paramiko>=3.4,<4 # 4.x+ dropped ssh-rsa (SHA-1) and ssh-dss host keys used by older switches (e.g. LANCOM GS-23xx) pywin32>=306; sys_platform == "win32"