smsearcy / mesh-info

Collect and view information about an AREDN mesh network.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse sysinfo.json based on API version

smsearcy opened this issue · comments

I think there are a couple of good reasons to breakout the API parsing by version.

  • Less complex and presumably more efficient. Fewer branches/conditionals by having a single dict lookup to get the parsing function which can then assume a certain structure to the data.
  • Easier to deprecate older code at some point in the future.