openwisp / openwrt-openwisp-monitoring

OpenWRT monitoring agent for openwisp-monitoring
https://openwisp.io/docs/dev/openwrt-monitoring-agent/
GNU General Public License v3.0
23 stars 20 forks source link

[bug] Spanning Tree Status shown incorrectly #123

Closed ghost closed 1 year ago

ghost commented 1 year ago

I have a device on OpenWrt 22.03.x with spanning tree protocol enabled on the br-lan bridge. OpenWISP is showing Spanning Tree as being off though. I think it could be because it is reporting a "device" not an "interface".

The UCI is: network.@device[0].stp='1'

Screenshot 2023-08-10 at 8 38 23 am
nemesifier commented 1 year ago

We need to update the code to look in device objects too.

nemesifier commented 1 year ago

This is the part of the code which needs to be upgraded:

https://github.com/openwisp/openwrt-openwisp-monitoring/blob/0f829f80fcd751b005b5ff8c0923ef0ca8fef081/openwisp-monitoring/files/lib/openwisp-monitoring/interfaces.lua#L169