Legacy CAPsMAN support; optic readings under either field name (v0.37.0)
#250: the original CAPsMAN (/caps-man, wireless package) is now read.
- A device with /caps-man manager enabled is a controller, also on a CHR
that has the newer wifi menu (every 7.24 device does). - Radios come from /caps-man interface (channel and power split out of
"2412/20/gn(30dBm)"), matched to their AP by MAC and stored in the
same tables as the newer CAPsMAN, so the Wireless page and CAPsMAN
panel show them unchanged. - Clients come from the controller's registration table (print stats):
signal (rx-signal), traffic, last-ip, and the entry's comment as the
name when DHCP has none. The CAP's own table is empty under legacy
CAPsMAN. - An AP with /interface wireless cap enabled is a CAP; its handed-over
interfaces are marked managed and show the controller's SSID. - Devices classified by the old role check are probed once more
(wifi_role_probe), so an existing legacy controller is found. - CAPsMAN panel: 'running-ap' counts as running.
Fix: the legacy wireless driver's bytes=sent,received was read as
received,sent, swapping TX and RX for its clients (MikroTik's docs, and
a streaming stick's 150 MB / 19 MB in #250). Expect one traffic jump on
old-driver clients after upgrading.
#249: a CRS520-4XS-16XQ on 7.24.5 reports a QSFP28 optic's diagnostics
as rx-power, tx-power, temperature, ... without the sfp- prefix in
MikroTik's manual, so 0.36.0 recorded nothing for it. Both names are
read now, in the recorded levels and the live port card.
Tested: unit tests from the reporters' exact output; the real collector
run against the database with #250's output standing in for the CHR and
RB951 (roles, radio-to-AP match, SSID, channel, clients with signal and
IP, Wireless list, CAPsMAN panel), fixtures removed; a slow poll on the
real fleet left every role unchanged.
Docs: capsman.md (Legacy CAPsMAN).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Container images (published once CI passes):
ghcr.io/2gt-media-group-llc/mikrotik-manager-backend:0.37.0-betaghcr.io/2gt-media-group-llc/mikrotik-manager-nginx:0.37.0-beta
Documentation: https://2gt-media-group-llc.github.io/mikrotik-manager/