smsearcy / mesh-info

Collect and view information about an AREDN mesh network.
GNU General Public License v3.0
5 stars 2 forks source link

Fix primary IP address when RF disabled #111

Closed smsearcy closed 1 year ago

smsearcy commented 1 year ago

On the latest nightly builds, the "primary IP" is available on the br-nomesh interface. The removal of the IP address from the wireless interface has been causing some issues with nodes colliding due to matching on a blank IP address (resulting in several nodes matching to the same database model and collisions in RRD writes).

I think the most reliable course of action is the following:

  1. Rename the attribute for the wireless IP address to be the primary IP address.
  2. Add the br-nomesh interface to the list of interfaces that we look for the primary IP address on.
  3. In the absence of identifying a primary IP address from sysinfo.json, use the IP address that the poller connected to.