Christian Manivong c2bcf61e67
driver / standard (pull_request) Successful in 19s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m5s
driver / test (3.12) (pull_request) Successful in 1m2s
driver / test (3.13) (pull_request) Successful in 53s
driver / lowest (pull_request) Failing after 21s
driver / build (pull_request) Successful in 28s
driver / security (pull_request) Successful in 1m2s
CI / driver (pull_request) Failing after 2m39s
driver / publish (pull_request) Skipped
chore: Python 3.12 is the floor (NAPALM/driver-standard#6)
netOrk runs every driver in its own containers on Python 3.12, so 3.10
and 3.11 are no longer supported or tested. requires-python, mypy and
ruff move to 3.12, along with what ruff's pyupgrade rules then rewrite.
2026-10-27 10:19:01 +01:00

napalm-yealink

NAPALM driver for Yealink IP phones and video endpoints (T, W, CP and VP series), built on napalm-device-types (PhoneDriver).

Tested against

Model Firmware
not recorded yet not recorded yet

Connection

The phone's REST API under /api/v1/ over HTTPS on port 443. open() logs in at /api/v1/session/login with the username and the MD5 hex digest of the password (the driver computes it) and keeps the session cookie. A refused login does not fail open(): even without a session, /api/v1/system/info names the model and firmware.

from napalm import get_network_driver

driver = get_network_driver("yealink")
with driver("192.0.2.20", "admin", "secret") as device:
    print(device.get_facts())
Optional argument Default Meaning
verify_ssl False verify the phone's TLS certificate

Supported

Getter / action
get_facts model, firmware, hostname, serial number from /api/v1/system/info
is_alive TCP connect to port 443

Not supported

Everything else a NAPALM driver can offer — interfaces, configuration, LLDP, ARP, MAC table, NTP, SNMP, users, routes, ping and the CLI — raises NotImplementedError. get_facts reports no uptime and no interfaces.

Development

The rules are in STANDARDS.md.

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/pytest --cov

License

Apache-2.0

S
Description
No description provided
Readme
115 KiB
0 Stars 1 Watchers 0 Forks
2026-10-26 19:35:05 +00:00
Languages
Python 100%