Commit Graph
11 Commits
Author SHA1 Message Date
Christian Manivong e08f5bb28e feat: unifi_switch and unifi_ap drivers
UnifiSwitchDriver adds PoE and VLANs (with their ports, and NAPALM's
get_vlans from them); UnifiAccessPointDriver adds SSIDs, radios and wireless
clients. Discovery knows Ubiquiti's OUIs from the IEEE registry.
2026-12-05 17:02:49 +01:00
Christian Manivong ff5c1a910d feat: one base for a UniFi switch and access point
UnifiDevice reads a device through its controller (found by MAC or by its
address, in any site) or over SSH (a separate SSH profile, or the driver's own
login with a key file): facts, ports, management address, LLDP and MAC table.
2026-12-05 17:01:20 +01:00
Christian Manivong 1aaa8587d0 feat: open a controller with its certificate pinned
The controller's certificate is trusted on first use and pinned for the
session before any login. An api_token profile's secret is the API key;
otherwise a local admin's login, separate or the driver's own.
2026-12-05 16:59:54 +01:00
Christian Manivong 49f21e0fa2 feat: SSH shell with a verified host key
paramiko through HostKeyCheck: trust on first use, a changed key refused
before any login. Only the password or key given is offered, never an agent
or a key file; Ed25519, ECDSA and RSA keys are read.
2026-12-05 16:58:36 +01:00
Christian Manivong 1b1c574656 style: format the client tests 2026-12-05 16:57:18 +01:00
Christian Manivong f77524cd44 feat: device sources, through the controller or over SSH
ControllerSource reads a device's stat/device entry, its networks and port
profiles, the stations and the WLANs from its controller; SshSource reads the
device's own mca-dump and running.cfg. Both hand the drivers the same record,
read once per connection.
2026-12-05 16:57:16 +01:00
Christian Manivong d4dac1e3c7 feat: controller client for UniFi OS and the standalone Network application
API key or local login, CSRF token, no redirects followed, a login rate
limit that backs off, MFA accounts refused with the way in, a wrong site
told apart from an empty one, paged Integration lists.

Refs NetOrk/netork#2787
2026-12-05 16:55:02 +01:00
Christian Manivong 380759ae50 feat: a switch's VLANs with their ports, from the controller and from running.cfg
Refs NetOrk/netork#2787
2026-12-05 16:53:30 +01:00
Christian Manivong 4b171d154b feat: managed devices from the Integration and the classic API
Integration fixtures are assembled from the shapes of Ubiquiti's published
OpenAPI spec (10.6.106), which carries no whole-response examples.

Refs NetOrk/netork#2787
2026-12-05 16:52:01 +01:00
Christian Manivong 596698970c feat: SSIDs, radios and wireless clients of an access point
Refs NetOrk/netork#2787
2026-12-05 16:50:58 +01:00
Christian Manivong 0d0fa905c6 feat: device record parsers and anonymised fixtures
Facts, ports, management address, LLDP (per-port and top-level shapes),
MAC table and PoE from a UniFi device record, which a controller's
stat/device and the device's own mca-dump share. Fixtures from aiounifi
(MIT) and abates/napalm-unifi (Apache-2.0), anonymised with
tools/sanitize.py.

Refs NetOrk/netork#2787
2026-12-05 14:11:50 +01:00