diff --git a/napalm_procurve/procurve.py b/napalm_procurve/procurve.py index ce8b816..e264248 100644 --- a/napalm_procurve/procurve.py +++ b/napalm_procurve/procurve.py @@ -569,7 +569,12 @@ class ProcurveDriver(ConfigLifecycleMixin, SwitchDriver): if result.get("running"): return result # REST endpoint not available on this firmware (e.g. HP 2530 / YA series). - # Fall back to a temporary SSH connection to run show running-config. + # HP switches allow only one session per user — close the REST session + # first so the switch accepts the SSH connection. + try: + self._api._session.close() + except Exception: + pass running = self._get_config_via_ssh() return {"running": running, "startup": "", "candidate": ""}