Merge NAPALM/napalm-device-types main (4.50.0) into feature/host-logins
driver / lint (pull_request) Successful in 17s
driver / standard (pull_request) Successful in 21s
driver / types (pull_request) Successful in 59s
driver / test (3.13) (pull_request) Successful in 1m19s
driver / test (3.12) (pull_request) Successful in 1m26s
driver / lowest (pull_request) Successful in 47s
driver / build (pull_request) Successful in 32s
driver / security (pull_request) Failing after 1m5s
CI / driver (pull_request) Failing after 2m45s
driver / publish (pull_request) Skipped

v4.50.0 went to #140, so this branch's release is 4.51.0 now.
This commit is contained in:
christianmanivong committed 2026-11-28 08:22:46 +01:00
commit 4b4797e383
7 files changed
+164 -3

No files matched your search

+9
View File
@@ -364,6 +364,15 @@ login user and followed through `@include`, `include` and `substack`. Which of t
second factor is the consumer's call. `Match` blocks are not read. `OpenSshServerMixin`
carries it; a driver can also mix it in alone and supply `run_command`.
`login_sources` describes where a device checks a person's login, for platforms that try a
login against a list of authentication servers and let in whatever the first one accepts
(OPNsense). A driver that can read its web interface's list implements
`get_web_login_auth() -> WebLoginAuthDict`: each source with its name, the device's word for
its kind, and what it asks for (`password`, `password_otp`, `external` or `unknown`). Such a
platform's `get_ssh_server_auth` may add `password_sources` (what checks an SSH password)
and `server_enabled` (False when SSH is off) to `SshServerAuthDict`. Which source counts as
a second factor is the consumer's call.
`SudoHistoryMixin` (`get_history_sudo_lines`, `remove_history_sudo_lines`) deals with what
a driver left behind when it typed `echo '<password>' | sudo -S -p "" …` into an interactive
shell: that line, password and all, in the login user's shell history, and files its partial