8 Commits
Author SHA1 Message Date
Christian Manivong 33d07bed58 fix: inherit PhoneDriver, and stop asserting a contract the driver rejected
Closes netork#117.

A Yealink is a desk phone. It inherited AccessPointDriver because nothing better
existed, and netOrk reads that role to populate its wireless page, its AP
profile pickers and its SSID drift view — so a phone appeared in all three.
napalm-device-types now has PhoneDriver. TYPE_LABEL comes from it, so the local
override is gone.

The two failing fingerprint tests were asserting the opposite of a deliberate
decision. HTTP_FINGERPRINT carries "yealink" as a heavy but *not* mandatory
rule, with the reason written next to it: some models answer / with a redirect
to their API page, whose body says "yealink" nowhere, and a mandatory rule
disqualifies the driver whenever its pattern is absent. Making it mandatory
would rule out a real phone.

The tests demanded it be mandatory, and the Cisco test then asserted `not
all(...)` over an empty list, which is False. Both now check the property that
actually protects against a false match: none of this driver's patterns appear
on a Cisco page, so it contributes no score and never wins.
2026-08-21 13:07:37 +07:00
Christian ManivongandClaude Sonnet 4.6 459178a2f4 fix: mandatory von HTTP_FINGERPRINT entfernen — Yealink /api-Redirect hat kein 'yealink' im Body
OUI-Treffer (80:5E:0C, 80:5E:C0) sind der zuverlässigere Identifier.
mandatory=True disqualifizierte Geräte bei denen nur der JS-Redirect abgeholt
wurde statt der vollständigen Login-Seite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 17:29:13 +02:00
Christian Manivong 30fc536394 fix: falsche OUI-Prefixes entfernen (gegen IEEE verifiziert) 2026-06-24 17:06:45 +02:00
Christian ManivongandClaude Sonnet 4.6 d31f1f18f8 fix: falsche OUI-Prefixes entfernen (00:1A:8C = AzureWave, nicht Yealink)
Nur IEEE-verifizierte und an echten Geraeten bestaetigen OUIs behalten.
00:1A:8C gehoert AzureWave Technology (OpenWrt-WLAN-Chips), nicht Yealink.
24:9A:D8, 70:32:17, 34:6B:D3 entfernt bis Bestaetigung vorliegt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 16:46:26 +02:00
Christian Manivong a38db4f605 fix: OUI-Prefix 80:5E:0C für zweite Yealink-MAC-Allokation 2026-06-24 15:48:49 +02:00
Christian ManivongandClaude Sonnet 4.6 14ea3ab9e6 feat: OUI_PREFIXES für MAC/ARP-Fingerprinting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 15:41:45 +02:00
Christian Manivong 8ba421b234 chore: add .gitignore 2026-06-24 15:17:12 +02:00
Christian ManivongandClaude Sonnet 4.6 60525bd35e feat: initial napalm-yealink driver
Discovery-Fingerprinting für Yealink IP-Phones (T-series, W-series,
CP-series, VP-series) und Video-Endpoints.

- TYPE_LABEL = "Phone" (Override von AccessPointDriver)
- SNMP_OBJECT_ID_PREFIX = "1.3.6.1.4.1.37403" (Yealink Enterprise OID)
- HTTP_FINGERPRINT: "yealink" (mandatory, weight 10), Modell-Patterns
- get_facts(): liest phoneName + firmware aus dem noauth-API-Response
  (/api/v1/system/info liefert Gerätedaten auch ohne Authentication)
- Login via MD5-gehashtem Passwort auf /api/v1/session/login (HTTPS)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 15:17:08 +02:00