mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-12 04:55:14 -04:00
fix(unifi): import wireless SSIDs into device scans
Read essid instead of the UniFi network name, exclude wired clients, and map the plugin result to scanSSID. Label the imported value as SSID.
This commit is contained in:
1 parent
97ea3d2796
commit
6b76b8c8ea
2 files changed
+5
-4
No files matched your search
@@ -360,21 +360,22 @@
|
||||
},
|
||||
{
|
||||
"column": "extra",
|
||||
"mapped_to_column": "scanSSID",
|
||||
"css_classes": "col-sm-3",
|
||||
"default_value": "",
|
||||
"localized": ["name"],
|
||||
"name": [
|
||||
{
|
||||
"language_code": "en_us",
|
||||
"string": "Network"
|
||||
"string": "SSID"
|
||||
},
|
||||
{
|
||||
"language_code": "es_es",
|
||||
"string": "Red"
|
||||
"string": "SSID"
|
||||
},
|
||||
{
|
||||
"language_code": "de_de",
|
||||
"string": "Netzwerk"
|
||||
"string": "SSID"
|
||||
}
|
||||
],
|
||||
"options": [],
|
||||
|
||||
@@ -198,7 +198,7 @@ def collect_details(device_type, devices, online_macs, processed_macs, plugin_ob
|
||||
watched2=get_unifi_val(device, 'oui', device_vendor),
|
||||
watched3=deviceType,
|
||||
watched4=status,
|
||||
extra=get_unifi_val(device, 'connection_network_name', ''),
|
||||
extra='' if device.get('is_wired') is True else get_unifi_val(device, 'essid', ''),
|
||||
foreignKey="",
|
||||
helpVal1=parentMac,
|
||||
helpVal2=get_port(get_unifi_val(device, 'sw_port'), get_unifi_val(device, 'uplink_remote_port')),
|
||||
|
||||
Reference in new issue
Block a user