Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor AREDN sysinfo.json parsing #127

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

smsearcy
Copy link
Owner

@smsearcy smsearcy commented Jun 28, 2024

Separate parsing of legacy API so there are fewer branches and checks in the parsing code.

Closes #104

meshinfo/aredn.py Outdated Show resolved Hide resolved
meshinfo/aredn.py Outdated Show resolved Hide resolved
@smsearcy smsearcy force-pushed the 104-refactor-sysinfo-parsing branch from 074ac9b to 4cd5877 Compare July 5, 2024 19:59
@smsearcy smsearcy marked this pull request as ready for review July 25, 2024 19:27
@smsearcy smsearcy force-pushed the 104-refactor-sysinfo-parsing branch from 4cd5877 to fbed52d Compare July 25, 2024 19:47
Default to "modern" parsing, falling back to legacy on errors.
Update AREDN data classes to use new `attrs` syntax, with some
refactoring.
Stop parsing `services_local` JSON because it wasn't being used.
@smsearcy smsearcy force-pushed the 104-refactor-sysinfo-parsing branch from fbed52d to 57860c3 Compare July 25, 2024 19:50
@smsearcy smsearcy merged commit d019393 into master Jul 25, 2024
6 checks passed
@smsearcy smsearcy deleted the 104-refactor-sysinfo-parsing branch July 25, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse sysinfo.json based on API version
1 participant