mirror of
https://github.com/unpoller/unpoller.git
synced 2026-07-15 10:32:40 -04:00
unifi_device_vap_* and unifi_device_radio_* previously exposed only (site_name, name, source) as per-device identifiers, none of which is a stable primary key (name is user-editable, source is the controller hostname). The device MAC is already available on the parent UAP/UDM/UDB/UBB struct, so this threads d.Mac through exportVAPtable / exportRADtable and adds it as a label on every series those functions emit. This lets downstream consumers join VAP/radio series directly against unifi_device_info (which already carries mac) without going through the (site_name, name, source) intersection. Applied at all four call sites: UAP, UDM, UDB, UBB.