feat(logins): get_login_sessions through LoginSessionsMixin, 0.26.0 (NetOrk/netork#2881) #93

Merged
christianmanivong merged 1 commits from feature/login-sessions into main 2026-12-01 09:02:11 +00:00
Owner

get_login_sessions() through napalm-device-types' LoginSessionsMixin (4.55.0, NAPALM/napalm-device-types feature/login-sessions), for NetOrk/netork#2881.

  • The transport is an exec channel as the login user (run_command without privileged): wtmp is readable to everyone, and sudo would reset SSH_CONNECTION, which names the driver's own address.
  • OpenMediaVault and QNAP get it through LinuxDriver unchanged; a QNAP whose last is BusyBox's raises LoginSessionsUnavailable.
  • Requires napalm-device-types>=4.55.0. CI pre-installs device-types from its main branch, so this PR goes green once the device-types PR is merged.
`get_login_sessions()` through napalm-device-types' `LoginSessionsMixin` (4.55.0, NAPALM/napalm-device-types `feature/login-sessions`), for NetOrk/netork#2881. - The transport is an exec channel as the login user (`run_command` without `privileged`): wtmp is readable to everyone, and sudo would reset `SSH_CONNECTION`, which names the driver's own address. - OpenMediaVault and QNAP get it through `LinuxDriver` unchanged; a QNAP whose `last` is BusyBox's raises `LoginSessionsUnavailable`. - Requires `napalm-device-types>=4.55.0`. CI pre-installs device-types from its main branch, so this PR goes green once the device-types PR is merged.
christianmanivong added 1 commit 2026-12-01 08:41:46 +00:00
feat(logins): get_login_sessions through LoginSessionsMixin, 0.26.0 (NetOrk/netork#2881)
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 16s
driver / lowest (pull_request) Successful in 41s
driver / test (3.12) (pull_request) Successful in 1m28s
driver / test (3.13) (pull_request) Successful in 1m16s
driver / types (pull_request) Successful in 1m33s
driver / security (pull_request) Successful in 1m0s
driver / build (pull_request) Successful in 30s
CI / driver (pull_request) Successful in 2m0s
driver / publish (pull_request) Skipped
55507a8a25
The interactive logins the host recorded, napalm-device-types' command on
an exec channel as the login user: wtmp is readable to everyone, and sudo
would drop SSH_CONNECTION, which names the driver's own address.
christianmanivong merged commit 612bda6ce2 into main 2026-12-01 09:02:11 +00:00
christianmanivong deleted branch feature/login-sessions 2026-12-01 09:02:11 +00:00
Sign in to join this conversation.